From 687bc88df77b9b7d70235d0459371daffafd81fd Mon Sep 17 00:00:00 2001 From: topsworld Date: Tue, 17 Dec 2024 10:19:58 +0800 Subject: [PATCH] fix: fix humidifier trans rule --- custom_components/xiaomi_home/miot/specs/specv2entity.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/custom_components/xiaomi_home/miot/specs/specv2entity.py b/custom_components/xiaomi_home/miot/specs/specv2entity.py index e1d14a2..5c64083 100644 --- a/custom_components/xiaomi_home/miot/specs/specv2entity.py +++ b/custom_components/xiaomi_home/miot/specs/specv2entity.py @@ -106,7 +106,7 @@ SPEC_DEVICE_TRANS_MAP: dict[str, dict | str] = { 'environment': { 'required': { 'properties': { - 'relative-humidity': {'read', 'write'} + 'relative-humidity': {'read'} } } } @@ -130,7 +130,7 @@ SPEC_DEVICE_TRANS_MAP: dict[str, dict | str] = { 'environment': { 'required': { 'properties': { - 'relative-humidity': {'read', 'write'} + 'relative-humidity': {'read'} } } }