From c6c8c1293f172fc523013ca05d8122ebacd57b22 Mon Sep 17 00:00:00 2001 From: Regev Brody Date: Sun, 14 Nov 2021 12:20:02 +0200 Subject: [PATCH] Bump pyezviz to 0.1.9.8 (#58873) * always create sensors for ezviz * fix ezviz sensors --- homeassistant/components/ezviz/manifest.json | 2 +- homeassistant/components/ezviz/sensor.py | 2 ++ requirements_all.txt | 2 +- requirements_test_all.txt | 2 +- 4 files changed, 5 insertions(+), 3 deletions(-) diff --git a/homeassistant/components/ezviz/manifest.json b/homeassistant/components/ezviz/manifest.json index 1108f1a6f83..0c6fe4e9dcf 100644 --- a/homeassistant/components/ezviz/manifest.json +++ b/homeassistant/components/ezviz/manifest.json @@ -4,7 +4,7 @@ "documentation": "https://www.home-assistant.io/integrations/ezviz", "dependencies": ["ffmpeg"], "codeowners": ["@RenierM26", "@baqs"], - "requirements": ["pyezviz==0.1.9.4"], + "requirements": ["pyezviz==0.1.9.8"], "config_flow": true, "iot_class": "cloud_polling" } diff --git a/homeassistant/components/ezviz/sensor.py b/homeassistant/components/ezviz/sensor.py index 3ea650154f0..5197982a2c5 100644 --- a/homeassistant/components/ezviz/sensor.py +++ b/homeassistant/components/ezviz/sensor.py @@ -36,6 +36,8 @@ SENSOR_TYPES: dict[str, SensorEntityDescription] = { key="PIR_Status", device_class=DEVICE_CLASS_MOTION, ), + "last_alarm_type_code": SensorEntityDescription(key="last_alarm_type_code"), + "last_alarm_type_name": SensorEntityDescription(key="last_alarm_type_name"), } diff --git a/requirements_all.txt b/requirements_all.txt index e58f0b1409f..edaaeac74d4 100644 --- a/requirements_all.txt +++ b/requirements_all.txt @@ -1471,7 +1471,7 @@ pyeverlights==0.1.0 pyevilgenius==1.0.0 # homeassistant.components.ezviz -pyezviz==0.1.9.4 +pyezviz==0.1.9.8 # homeassistant.components.fido pyfido==2.1.1 diff --git a/requirements_test_all.txt b/requirements_test_all.txt index 28abac33b50..4964d8e3e09 100644 --- a/requirements_test_all.txt +++ b/requirements_test_all.txt @@ -874,7 +874,7 @@ pyeverlights==0.1.0 pyevilgenius==1.0.0 # homeassistant.components.ezviz -pyezviz==0.1.9.4 +pyezviz==0.1.9.8 # homeassistant.components.fido pyfido==2.1.1