From 33ed017851830dffbaba66a98341b7076ed87b70 Mon Sep 17 00:00:00 2001 From: SiliconAvatar <43505983+SiliconAvatar@users.noreply.github.com> Date: Fri, 17 May 2019 17:02:56 -0400 Subject: [PATCH] Add unit of measurement to Tautulli sensor (#23873) Adds unit of measurement ("Watching") to sensor, so it can be graphed properly. This is the same unit of measurement as the Plex sensor. --- homeassistant/components/tautulli/sensor.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/homeassistant/components/tautulli/sensor.py b/homeassistant/components/tautulli/sensor.py index ca1651eca68..d30dafd8da4 100644 --- a/homeassistant/components/tautulli/sensor.py +++ b/homeassistant/components/tautulli/sensor.py @@ -119,6 +119,11 @@ class TautulliSensor(Entity): """Return the icon of the sensor.""" return 'mdi:plex' + @property + def unit_of_measurement(self): + """Return the unit this state is expressed in.""" + return "Watching" + @property def device_state_attributes(self): """Return attributes for the sensor."""