mirror of
https://github.com/home-assistant/core.git
synced 2025-07-23 05:07:41 +00:00
Address Ezviz select entity late review (#96525)
* Ezviz Select Entity * Update IR description
This commit is contained in:
parent
1b7632a673
commit
1e704c4abe
@ -53,14 +53,14 @@ async def async_setup_entry(
|
|||||||
]
|
]
|
||||||
|
|
||||||
async_add_entities(
|
async_add_entities(
|
||||||
EzvizSensor(coordinator, camera)
|
EzvizSelect(coordinator, camera)
|
||||||
for camera in coordinator.data
|
for camera in coordinator.data
|
||||||
for switch in coordinator.data[camera]["switches"]
|
for switch in coordinator.data[camera]["switches"]
|
||||||
if switch == SELECT_TYPE.supported_switch
|
if switch == SELECT_TYPE.supported_switch
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
class EzvizSensor(EzvizEntity, SelectEntity):
|
class EzvizSelect(EzvizEntity, SelectEntity):
|
||||||
"""Representation of a EZVIZ select entity."""
|
"""Representation of a EZVIZ select entity."""
|
||||||
|
|
||||||
_attr_has_entity_name = True
|
_attr_has_entity_name = True
|
||||||
|
@ -77,7 +77,7 @@
|
|||||||
"step": {
|
"step": {
|
||||||
"confirm": {
|
"confirm": {
|
||||||
"title": "[%key:component::ezviz::issues::service_deprecation_alarm_sound_level::title%]",
|
"title": "[%key:component::ezviz::issues::service_deprecation_alarm_sound_level::title%]",
|
||||||
"description": "Ezviz Alarm sound level service is deprecated and will be removed in Home Assistant 2024.2.\nTo set the Alarm sound level, you can instead use the `select.select_option` service targetting the Warning sound entity.\n\nPlease remove the use of this service from your automations and scripts and select **submit** to close this issue."
|
"description": "Ezviz Alarm sound level service is deprecated and will be removed.\nTo set the Alarm sound level, you can instead use the `select.select_option` service targetting the Warning sound entity.\n\nPlease remove the use of this service from your automations and scripts and select **submit** to close this issue."
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user