From d60a92f8f70f35227e71f5790dc41f11e4d4aa28 Mon Sep 17 00:00:00 2001 From: Petr Leo Compel Date: Fri, 24 May 2024 23:47:20 +0200 Subject: [PATCH] fix: add `wirelessDoublePIRDetector` #114 --- custom_components/hikvision_axpro/model.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/custom_components/hikvision_axpro/model.py b/custom_components/hikvision_axpro/model.py index 2fb60d6..f4741cc 100644 --- a/custom_components/hikvision_axpro/model.py +++ b/custom_components/hikvision_axpro/model.py @@ -113,6 +113,7 @@ class DetectorType(Enum): WIRELESS_SMOKE_DETECTOR = "wirelessSmokeDetector" WIRELESS_TEMPERATURE_HUMIDITY_DETECTOR = "wirelessTemperatureHumidityDetector" WIRELESS_TRI_TECH_DETECTOR = "wirelesTriTechDetector" + WIRELESS_DOUBLE_PIR_DETECTOR = "wirelessDoublePIRDetector" OTHER = "other" @@ -143,6 +144,8 @@ def detector_model_to_name(model_id: Optional[str]) -> str: return "Wireless CO Detector" if model_id == "0x00032": return "Wireless PIR AM Curtain Detector" + if model_id == "0x00040": + return "Wireless Double PIR Detector" if model_id is not None: return str(model_id) return "Unknown"