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.
This commit is contained in:
SiliconAvatar 2019-05-17 17:02:56 -04:00 committed by Joakim Sørensen
parent fffc4dd3fd
commit 33ed017851

View File

@ -119,6 +119,11 @@ class TautulliSensor(Entity):
"""Return the icon of the sensor.""" """Return the icon of the sensor."""
return 'mdi:plex' return 'mdi:plex'
@property
def unit_of_measurement(self):
"""Return the unit this state is expressed in."""
return "Watching"
@property @property
def device_state_attributes(self): def device_state_attributes(self):
"""Return attributes for the sensor.""" """Return attributes for the sensor."""