Address Ezviz select entity late review (#96525)

* Ezviz Select Entity

* Update IR description
This commit is contained in:
RenierM26 2023-07-14 19:27:41 +02:00 committed by GitHub
parent 1b7632a673
commit 1e704c4abe
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 3 deletions

View File

@ -53,14 +53,14 @@ async def async_setup_entry(
]
async_add_entities(
EzvizSensor(coordinator, camera)
EzvizSelect(coordinator, camera)
for camera in coordinator.data
for switch in coordinator.data[camera]["switches"]
if switch == SELECT_TYPE.supported_switch
)
class EzvizSensor(EzvizEntity, SelectEntity):
class EzvizSelect(EzvizEntity, SelectEntity):
"""Representation of a EZVIZ select entity."""
_attr_has_entity_name = True

View File

@ -77,7 +77,7 @@
"step": {
"confirm": {
"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."
}
}
}