Fix solaredge energy sensor names (#58773)

This commit is contained in:
purcell-lab 2021-11-01 02:11:48 +11:00 committed by GitHub
parent ce27fb87c6
commit 13386fc41b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -147,45 +147,45 @@ SENSOR_TYPES = [
icon="mdi:car-battery", icon="mdi:car-battery",
), ),
SolarEdgeSensorEntityDescription( SolarEdgeSensorEntityDescription(
key="purchased_power", key="purchased_energy",
json_key="Purchased", json_key="Purchased",
name="Imported Power", name="Imported Energy",
entity_registry_enabled_default=False, entity_registry_enabled_default=False,
state_class=STATE_CLASS_TOTAL_INCREASING, state_class=STATE_CLASS_TOTAL_INCREASING,
native_unit_of_measurement=ENERGY_WATT_HOUR, native_unit_of_measurement=ENERGY_WATT_HOUR,
device_class=DEVICE_CLASS_ENERGY, device_class=DEVICE_CLASS_ENERGY,
), ),
SolarEdgeSensorEntityDescription( SolarEdgeSensorEntityDescription(
key="production_power", key="production_energy",
json_key="Production", json_key="Production",
name="Production Power", name="Production Energy",
entity_registry_enabled_default=False, entity_registry_enabled_default=False,
state_class=STATE_CLASS_TOTAL_INCREASING, state_class=STATE_CLASS_TOTAL_INCREASING,
native_unit_of_measurement=ENERGY_WATT_HOUR, native_unit_of_measurement=ENERGY_WATT_HOUR,
device_class=DEVICE_CLASS_ENERGY, device_class=DEVICE_CLASS_ENERGY,
), ),
SolarEdgeSensorEntityDescription( SolarEdgeSensorEntityDescription(
key="consumption_power", key="consumption_energy",
json_key="Consumption", json_key="Consumption",
name="Consumption Power", name="Consumption Energy",
entity_registry_enabled_default=False, entity_registry_enabled_default=False,
state_class=STATE_CLASS_TOTAL_INCREASING, state_class=STATE_CLASS_TOTAL_INCREASING,
native_unit_of_measurement=ENERGY_WATT_HOUR, native_unit_of_measurement=ENERGY_WATT_HOUR,
device_class=DEVICE_CLASS_ENERGY, device_class=DEVICE_CLASS_ENERGY,
), ),
SolarEdgeSensorEntityDescription( SolarEdgeSensorEntityDescription(
key="selfconsumption_power", key="selfconsumption_energy",
json_key="SelfConsumption", json_key="SelfConsumption",
name="SelfConsumption Power", name="SelfConsumption Energy",
entity_registry_enabled_default=False, entity_registry_enabled_default=False,
state_class=STATE_CLASS_TOTAL_INCREASING, state_class=STATE_CLASS_TOTAL_INCREASING,
native_unit_of_measurement=ENERGY_WATT_HOUR, native_unit_of_measurement=ENERGY_WATT_HOUR,
device_class=DEVICE_CLASS_ENERGY, device_class=DEVICE_CLASS_ENERGY,
), ),
SolarEdgeSensorEntityDescription( SolarEdgeSensorEntityDescription(
key="feedin_power", key="feedin_energy",
json_key="FeedIn", json_key="FeedIn",
name="Exported Power", name="Exported Energy",
entity_registry_enabled_default=False, entity_registry_enabled_default=False,
state_class=STATE_CLASS_TOTAL_INCREASING, state_class=STATE_CLASS_TOTAL_INCREASING,
native_unit_of_measurement=ENERGY_WATT_HOUR, native_unit_of_measurement=ENERGY_WATT_HOUR,