Add icon translations to Roku (#112214)
* Add icon translations to Roku * Add icon translations to Roku * Fix * Fix
This commit is contained in:
parent
7c4747bb02
commit
b34302e51b
7 changed files with 39 additions and 30 deletions
|
@ -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,
|
||||
),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue