Add icon translations to Plex (#112182)

This commit is contained in:
Joost Lekkerkerker 2024-03-05 09:20:00 +01:00 committed by GitHub
parent 48de304465
commit 1feeeb8608
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 14 additions and 1 deletions

View file

@ -0,0 +1,13 @@
{
"entity": {
"sensor": {
"plex": {
"default": "mdi:plex"
}
}
},
"services": {
"refresh_library": "mdi:refresh",
"scan_for_clients": "mdi:database-refresh"
}
}

View file

@ -72,7 +72,7 @@ class PlexSensor(SensorEntity):
_attr_has_entity_name = True _attr_has_entity_name = True
_attr_name = None _attr_name = None
_attr_icon = "mdi:plex" _attr_translation_key = "plex"
_attr_should_poll = False _attr_should_poll = False
_attr_native_unit_of_measurement = "watching" _attr_native_unit_of_measurement = "watching"