From 3546517093735d92ccadba911d486439e8248d6a Mon Sep 17 00:00:00 2001 From: Yi Zhai Date: Thu, 19 Dec 2024 17:18:55 +0800 Subject: [PATCH] fix: Update specv2entity.py for missing "binary_sensor" fix: Update specv2entity.py for missing "binary_sensor" fix typo which forgets to adding "binary_sensor" entity in `SPEC_PROP_TRANS_MAP`. --- custom_components/xiaomi_home/miot/specs/specv2entity.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/custom_components/xiaomi_home/miot/specs/specv2entity.py b/custom_components/xiaomi_home/miot/specs/specv2entity.py index 30528f8..911c2aa 100644 --- a/custom_components/xiaomi_home/miot/specs/specv2entity.py +++ b/custom_components/xiaomi_home/miot/specs/specv2entity.py @@ -337,6 +337,10 @@ 'format': {'int', 'float'}, 'access': {'read'} }, + 'binary_sensor': { + 'format': {'bool'}, + 'access': {'read'} + }, 'switch': { 'format': {'bool'}, 'access': {'read', 'write'}