From e3a7a253ea7eebcc442d852addb563adfd4eded3 Mon Sep 17 00:00:00 2001 From: wranglatang <30660751+wranglatang@users.noreply.github.com> Date: Fri, 10 Sep 2021 05:02:06 +0100 Subject: [PATCH] Add nut Watts datapoint (#55491) Co-authored-by: J. Nick Koston --- homeassistant/components/nut/const.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/homeassistant/components/nut/const.py b/homeassistant/components/nut/const.py index a180c2224f7..3861c608631 100644 --- a/homeassistant/components/nut/const.py +++ b/homeassistant/components/nut/const.py @@ -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 = {