Change state_class so older Envoys can use Energy Dashboard (#55383)

This commit is contained in:
Greg 2021-09-30 02:34:41 -07:00 committed by GitHub
parent 4c854a06d9
commit 6a266ae3c0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -27,7 +27,7 @@ SENSORS = (
key="daily_production", key="daily_production",
name="Today's Energy Production", name="Today's Energy Production",
native_unit_of_measurement=ENERGY_WATT_HOUR, native_unit_of_measurement=ENERGY_WATT_HOUR,
state_class=STATE_CLASS_MEASUREMENT, state_class=STATE_CLASS_TOTAL_INCREASING,
device_class=DEVICE_CLASS_ENERGY, device_class=DEVICE_CLASS_ENERGY,
), ),
SensorEntityDescription( SensorEntityDescription(