Add nut Watts datapoint (#55491)

Co-authored-by: J. Nick Koston <nick@koston.org>
This commit is contained in:
wranglatang 2021-09-10 05:02:06 +01:00 committed by GitHub
parent 5709640453
commit e3a7a253ea
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -453,6 +453,13 @@ SENSOR_TYPES: Final[dict[str, SensorEntityDescription]] = {
device_class=DEVICE_CLASS_TEMPERATURE,
state_class=STATE_CLASS_MEASUREMENT,
),
"watts": SensorEntityDescription(
key="watts",
name="Watts",
native_unit_of_measurement=POWER_WATT,
device_class=DEVICE_CLASS_POWER,
state_class=STATE_CLASS_MEASUREMENT,
),
}
STATE_TYPES = {