From b4754e2a26874ada11fe57945052b0fb0485d943 Mon Sep 17 00:00:00 2001 From: Alone Date: Mon, 9 Dec 2024 10:48:31 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=9B=8F=20improve=20for=20isleep=20blanket?= =?UTF-8?q?=20(#2044)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- custom_components/xiaomi_miot/core/device_customizes.py | 3 +++ custom_components/xiaomi_miot/core/miot_local_devices.py | 3 +-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/custom_components/xiaomi_miot/core/device_customizes.py b/custom_components/xiaomi_miot/core/device_customizes.py index 0cacf4dcc..b1403233a 100644 --- a/custom_components/xiaomi_miot/core/device_customizes.py +++ b/custom_components/xiaomi_miot/core/device_customizes.py @@ -803,7 +803,10 @@ 'switch_properties': 'on,time_watermark,motion_detection', 'number_properties': 'image_rollover,alarm_interval', }, + 'isleep.blanket.hs2001': CHUNK_1, + 'isleep.blanket.hs2201': CHUNK_1, 'isleep.blanket.hs2205': CHUNK_1, + 'isleep.blanket.hs2401': CHUNK_1, 'isleep.blanket.*': { 'sensor_properties': 'fault,temperature,water_level', 'select_properties': 'mode,sleep_level', diff --git a/custom_components/xiaomi_miot/core/miot_local_devices.py b/custom_components/xiaomi_miot/core/miot_local_devices.py index 39b83e26d..28a75653f 100644 --- a/custom_components/xiaomi_miot/core/miot_local_devices.py +++ b/custom_components/xiaomi_miot/core/miot_local_devices.py @@ -355,10 +355,9 @@ 'isleep.blanket.hs2001', 'isleep.blanket.hs2201', 'isleep.blanket.hs2205', + 'isleep.blanket.hs2401', 'izq.sensor_occupy.solo', 'izq.sensor_occupy.trio', - 'isleep.blanket.hs2001', - 'isleep.blanket.hs2205', 'jns.airer.1', 'julun.switch.jlsw01', 'jyf.tow_w.ts03',