Skip to content

Commit

Permalink
Add entity name translations to all entities (#210)
Browse files Browse the repository at this point in the history
  • Loading branch information
frenck authored Jun 3, 2023
1 parent ba652ee commit 01b2230
Show file tree
Hide file tree
Showing 5 changed files with 586 additions and 118 deletions.
6 changes: 3 additions & 3 deletions custom_components/spook/ectoplasms/cloud/switch.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,8 @@ def __post_init__(self) -> None:
),
HomeAssistantCloudSpookSwitchEntityDescription(
key="alexa_report_state",
translation_key="cloud_alexa_report_state",
entity_id="switch.cloud_alexa_report_state",
name="Alexa state reporting",
icon="mdi:account-voice",
entity_category=EntityCategory.CONFIG,
is_on_fn=lambda cloud: cloud.client.prefs.alexa_report_state,
Expand All @@ -80,8 +80,8 @@ def __post_init__(self) -> None:
),
HomeAssistantCloudSpookSwitchEntityDescription(
key="google_report_state",
translation_key="cloud_google_report_state",
entity_id="switch.cloud_google_report_state",
name="Google Assistant state reporting",
icon="mdi:google-assistant",
entity_category=EntityCategory.CONFIG,
is_on_fn=lambda cloud: cloud.client.prefs.google_report_state,
Expand All @@ -91,8 +91,8 @@ def __post_init__(self) -> None:
),
HomeAssistantCloudSpookSwitchEntityDescription(
key="remote",
translation_key="cloud_remote",
entity_id="switch.cloud_remote",
name="Remote",
icon="mdi:remote-desktop",
entity_category=EntityCategory.CONFIG,
is_on_fn=lambda cloud: cloud.client.prefs.remote_enabled,
Expand Down
Loading

0 comments on commit 01b2230

Please sign in to comment.