Add icon translations to Roku (#112214)

* Add icon translations to Roku

* Add icon translations to Roku

* Fix

* Fix
This commit is contained in:
Joost Lekkerkerker 2024-03-13 19:06:16 +01:00 committed by GitHub
parent 7c4747bb02
commit b34302e51b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
7 changed files with 39 additions and 30 deletions

View file

@ -31,27 +31,23 @@ BINARY_SENSORS: tuple[RokuBinarySensorEntityDescription, ...] = (
RokuBinarySensorEntityDescription(
key="headphones_connected",
translation_key="headphones_connected",
icon="mdi:headphones",
value_fn=lambda device: device.info.headphones_connected,
),
RokuBinarySensorEntityDescription(
key="supports_airplay",
translation_key="supports_airplay",
icon="mdi:cast-variant",
entity_category=EntityCategory.DIAGNOSTIC,
value_fn=lambda device: device.info.supports_airplay,
),
RokuBinarySensorEntityDescription(
key="supports_ethernet",
translation_key="supports_ethernet",
icon="mdi:ethernet",
entity_category=EntityCategory.DIAGNOSTIC,
value_fn=lambda device: device.info.ethernet_support,
),
RokuBinarySensorEntityDescription(
key="supports_find_remote",
translation_key="supports_find_remote",
icon="mdi:remote",
entity_category=EntityCategory.DIAGNOSTIC,
value_fn=lambda device: device.info.supports_find_remote,
),