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:
1 parent
fffc4dd3fd
commit
33ed017851
1 file changed
+5
@@ -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."""
|
||||
|
||||
Reference in new issue
Block a user