mirror of
https://github.com/home-assistant/core.git
synced 2025-07-19 11:17:21 +00:00
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:
parent
fffc4dd3fd
commit
33ed017851
@ -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."""
|
||||||
|
Loading…
x
Reference in New Issue
Block a user