Add icon translations to Reolink (#112208)
* Add icon translations to Reolink * Fix * Update homeassistant/components/reolink/icons.json Co-authored-by: starkillerOG <starkiller.og@gmail.com> * Update homeassistant/components/reolink/icons.json --------- Co-authored-by: starkillerOG <starkiller.og@gmail.com>
This commit is contained in:
parent
2599252600
commit
09b1b40833
9 changed files with 260 additions and 89 deletions
|
@ -51,7 +51,6 @@ SELECT_ENTITIES = (
|
|||
key="floodlight_mode",
|
||||
cmd_key="GetWhiteLed",
|
||||
translation_key="floodlight_mode",
|
||||
icon="mdi:spotlight-beam",
|
||||
entity_category=EntityCategory.CONFIG,
|
||||
get_options=lambda api, ch: api.whiteled_mode_list(ch),
|
||||
supported=lambda api, ch: api.supported(ch, "floodLight"),
|
||||
|
@ -62,7 +61,6 @@ SELECT_ENTITIES = (
|
|||
key="day_night_mode",
|
||||
cmd_key="GetIsp",
|
||||
translation_key="day_night_mode",
|
||||
icon="mdi:theme-light-dark",
|
||||
entity_category=EntityCategory.CONFIG,
|
||||
get_options=[mode.name for mode in DayNightEnum],
|
||||
supported=lambda api, ch: api.supported(ch, "dayNight"),
|
||||
|
@ -72,7 +70,6 @@ SELECT_ENTITIES = (
|
|||
ReolinkSelectEntityDescription(
|
||||
key="ptz_preset",
|
||||
translation_key="ptz_preset",
|
||||
icon="mdi:pan",
|
||||
get_options=lambda api, ch: list(api.ptz_presets(ch)),
|
||||
supported=lambda api, ch: api.supported(ch, "ptz_presets"),
|
||||
method=lambda api, ch, name: api.set_ptz_command(ch, preset=name),
|
||||
|
@ -80,7 +77,6 @@ SELECT_ENTITIES = (
|
|||
ReolinkSelectEntityDescription(
|
||||
key="play_quick_reply_message",
|
||||
translation_key="play_quick_reply_message",
|
||||
icon="mdi:message-reply-text-outline",
|
||||
get_options=lambda api, ch: list(api.quick_reply_dict(ch).values())[1:],
|
||||
supported=lambda api, ch: api.supported(ch, "play_quick_reply"),
|
||||
method=lambda api, ch, mess: (
|
||||
|
@ -91,7 +87,6 @@ SELECT_ENTITIES = (
|
|||
key="auto_quick_reply_message",
|
||||
cmd_key="GetAutoReply",
|
||||
translation_key="auto_quick_reply_message",
|
||||
icon="mdi:message-reply-text-outline",
|
||||
entity_category=EntityCategory.CONFIG,
|
||||
get_options=lambda api, ch: list(api.quick_reply_dict(ch).values()),
|
||||
supported=lambda api, ch: api.supported(ch, "quick_reply"),
|
||||
|
@ -104,7 +99,6 @@ SELECT_ENTITIES = (
|
|||
key="auto_track_method",
|
||||
cmd_key="GetAiCfg",
|
||||
translation_key="auto_track_method",
|
||||
icon="mdi:target-account",
|
||||
entity_category=EntityCategory.CONFIG,
|
||||
get_options=[method.name for method in TrackMethodEnum],
|
||||
supported=lambda api, ch: api.supported(ch, "auto_track_method"),
|
||||
|
@ -115,7 +109,6 @@ SELECT_ENTITIES = (
|
|||
key="status_led",
|
||||
cmd_key="GetPowerLed",
|
||||
translation_key="status_led",
|
||||
icon="mdi:lightning-bolt-circle",
|
||||
entity_category=EntityCategory.CONFIG,
|
||||
get_options=[state.name for state in StatusLedEnum],
|
||||
supported=lambda api, ch: api.supported(ch, "doorbell_led"),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue