From 13386fc41b502aeb992c9c6a72874c9fc6b30364 Mon Sep 17 00:00:00 2001 From: purcell-lab <79175134+purcell-lab@users.noreply.github.com> Date: Mon, 1 Nov 2021 02:11:48 +1100 Subject: [PATCH] Fix solaredge energy sensor names (#58773) --- homeassistant/components/solaredge/const.py | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/homeassistant/components/solaredge/const.py b/homeassistant/components/solaredge/const.py index d97c191a36b..6e353ffe339 100644 --- a/homeassistant/components/solaredge/const.py +++ b/homeassistant/components/solaredge/const.py @@ -147,45 +147,45 @@ SENSOR_TYPES = [ icon="mdi:car-battery", ), SolarEdgeSensorEntityDescription( - key="purchased_power", + key="purchased_energy", json_key="Purchased", - name="Imported Power", + name="Imported Energy", entity_registry_enabled_default=False, state_class=STATE_CLASS_TOTAL_INCREASING, native_unit_of_measurement=ENERGY_WATT_HOUR, device_class=DEVICE_CLASS_ENERGY, ), SolarEdgeSensorEntityDescription( - key="production_power", + key="production_energy", json_key="Production", - name="Production Power", + name="Production Energy", entity_registry_enabled_default=False, state_class=STATE_CLASS_TOTAL_INCREASING, native_unit_of_measurement=ENERGY_WATT_HOUR, device_class=DEVICE_CLASS_ENERGY, ), SolarEdgeSensorEntityDescription( - key="consumption_power", + key="consumption_energy", json_key="Consumption", - name="Consumption Power", + name="Consumption Energy", entity_registry_enabled_default=False, state_class=STATE_CLASS_TOTAL_INCREASING, native_unit_of_measurement=ENERGY_WATT_HOUR, device_class=DEVICE_CLASS_ENERGY, ), SolarEdgeSensorEntityDescription( - key="selfconsumption_power", + key="selfconsumption_energy", json_key="SelfConsumption", - name="SelfConsumption Power", + name="SelfConsumption Energy", entity_registry_enabled_default=False, state_class=STATE_CLASS_TOTAL_INCREASING, native_unit_of_measurement=ENERGY_WATT_HOUR, device_class=DEVICE_CLASS_ENERGY, ), SolarEdgeSensorEntityDescription( - key="feedin_power", + key="feedin_energy", json_key="FeedIn", - name="Exported Power", + name="Exported Energy", entity_registry_enabled_default=False, state_class=STATE_CLASS_TOTAL_INCREASING, native_unit_of_measurement=ENERGY_WATT_HOUR,