Skip to content

Commit

Permalink
Fix AC input entity (#27)
Browse files Browse the repository at this point in the history
  • Loading branch information
vwt12eh8 authored Aug 2, 2022
1 parent e7585fd commit 36ce32b
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions custom_components/ecoflow/sensor.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,6 @@ async def async_setup_entry(hass: HomeAssistant, entry: ConfigEntry, async_add_e
"ac_out_voltage", "AC output voltage"),
WattsEntity(client, client.pd, "in_power", "Total input"),
WattsEntity(client, client.pd, "out_power", "Total output"),
WattsEntity(client, client.inverter,
"ac_in_power", "AC input", real=0),
WattsEntity(client, client.inverter,
"ac_consumption", "AC output + loss", real=True),
WattsEntity(client, client.inverter, "ac_out_power",
Expand Down Expand Up @@ -92,6 +90,8 @@ async def async_setup_entry(hass: HomeAssistant, entry: ConfigEntry, async_add_e
"USB-C right temperature"),
VoltageEntity(client, client.mppt, "dc_in_voltage",
"DC input voltage"),
WattsEntity(client, client.inverter,
"ac_in_power", "AC input"),
WattsEntity(client, client.mppt, "dc_in_power",
"DC input", real=True),
WattsEntity(client, client.mppt,
Expand Down Expand Up @@ -162,8 +162,6 @@ async def async_setup_entry(hass: HomeAssistant, entry: ConfigEntry, async_add_e
VoltageEntity(client, client.inverter, "dc_in_voltage",
"DC input voltage"),
WattsEntity(client, client.pd, "car_out_power", "Car output"),
WattsEntity(client, client.inverter,
"dc_in_power", "DC input", real=True),
WattsEntity(client, client.pd, "light_power", "Light output"),
WattsEntity(client, client.pd, "usbqc_out1_power",
"USB-Fast output"),
Expand Down

0 comments on commit 36ce32b

Please # to comment.