Add entity translations to Roku (#96083)
* Add entity translations to Roku * Add entity translations to Roku
This commit is contained in:
parent
406f06f0fc
commit
890efd58e0
5 changed files with 44 additions and 12 deletions
|
@ -34,14 +34,14 @@ class RokuSensorEntityDescription(
|
|||
SENSORS: tuple[RokuSensorEntityDescription, ...] = (
|
||||
RokuSensorEntityDescription(
|
||||
key="active_app",
|
||||
name="Active App",
|
||||
translation_key="active_app",
|
||||
entity_category=EntityCategory.DIAGNOSTIC,
|
||||
icon="mdi:application",
|
||||
value_fn=lambda device: device.app.name if device.app else None,
|
||||
),
|
||||
RokuSensorEntityDescription(
|
||||
key="active_app_id",
|
||||
name="Active App ID",
|
||||
translation_key="active_app_id",
|
||||
entity_category=EntityCategory.DIAGNOSTIC,
|
||||
icon="mdi:application-cog",
|
||||
value_fn=lambda device: device.app.app_id if device.app else None,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue