From 9668100ec96b4f0e5d23079c37d82fc5554d2b61 Mon Sep 17 00:00:00 2001 From: Alone Date: Sat, 8 Feb 2025 14:50:58 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=91=94=20fix=20for=20hyd.airer.pro2=20(#2?= =?UTF-8?q?327)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../xiaomi_miot/core/device_customizes.py | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/custom_components/xiaomi_miot/core/device_customizes.py b/custom_components/xiaomi_miot/core/device_customizes.py index 9be7183bb5..29d868d9b4 100644 --- a/custom_components/xiaomi_miot/core/device_customizes.py +++ b/custom_components/xiaomi_miot/core/device_customizes.py @@ -752,6 +752,22 @@ 'position_reverse': True, 'cover_position_mapping': {}, }, + 'hyd.airer.pro': { + 'append_converters': [ + { + 'services': ['set_night_light'], + 'converters': [{'props': ['current_position']}], + } + ], + }, + 'hyd.airer.pro2': { + 'append_converters': [ + { + 'services': ['set_night_light'], + 'converters': [{'props': ['current_position']}], + } + ], + }, 'hyd.airer.znlyj5': { 'cover_position_mapping': {0: 50, 1: 0, 2: 100}, },