From df229e655bf20bdd569631f5a8cb56cc1e7d7069 Mon Sep 17 00:00:00 2001 From: Erik Montnemery Date: Mon, 10 Jul 2023 14:17:37 +0200 Subject: [PATCH] Correct flags for issue registry issue raised by ezviz (#95846) * Correct flags for issue registry issue raised by ezviz * Fix translation strings --- homeassistant/components/ezviz/camera.py | 3 ++- homeassistant/components/ezviz/strings.json | 9 ++++++++- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/homeassistant/components/ezviz/camera.py b/homeassistant/components/ezviz/camera.py index 60a332446ce..6150a657c1a 100644 --- a/homeassistant/components/ezviz/camera.py +++ b/homeassistant/components/ezviz/camera.py @@ -313,7 +313,8 @@ class EzvizCamera(EzvizEntity, Camera): DOMAIN, "service_depreciation_detection_sensibility", breaks_in_ha_version="2023.12.0", - is_fixable=False, + is_fixable=True, + is_persistent=True, severity=ir.IssueSeverity.WARNING, translation_key="service_depreciation_detection_sensibility", ) diff --git a/homeassistant/components/ezviz/strings.json b/homeassistant/components/ezviz/strings.json index 5711aff2a4a..92ff8c6fa05 100644 --- a/homeassistant/components/ezviz/strings.json +++ b/homeassistant/components/ezviz/strings.json @@ -62,7 +62,14 @@ "issues": { "service_depreciation_detection_sensibility": { "title": "Ezviz Detection sensitivity service is being removed", - "description": "Ezviz Detection sensitivity service is deprecated and will be removed in Home Assistant 2023.12; Please adjust the automation or script that uses the service and select submit below to mark this issue as resolved." + "fix_flow": { + "step": { + "confirm": { + "title": "[%key:component::ezviz::issues::service_depreciation_detection_sensibility::title%]", + "description": "The Ezviz Detection sensitivity service is deprecated and will be removed in Home Assistant 2023.12.\nTo set the sensitivity, you can instead use the `number.set_value` service targetting the Detection sensitivity entity.\n\nPlease remove the use of this service from your automations and scripts and select **submit** to close this issue." + } + } + } } } }