From 62231c7d1b8029eb4a201ee0b23241c4ab5ece67 Mon Sep 17 00:00:00 2001 From: Alone Date: Tue, 10 Dec 2024 12:55:18 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=9B=80=20fix=20for=20yeelink.bhf=5Flight.?= =?UTF-8?q?v6=20(#2010)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- custom_components/xiaomi_miot/climate.py | 4 ++-- custom_components/xiaomi_miot/core/device_customizes.py | 1 - 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/custom_components/xiaomi_miot/climate.py b/custom_components/xiaomi_miot/climate.py index 7dc311d4b..e97b56a50 100644 --- a/custom_components/xiaomi_miot/climate.py +++ b/custom_components/xiaomi_miot/climate.py @@ -212,11 +212,11 @@ async def async_added_to_hass(self): fst = fst or v val = v.get('value') if val not in mvs: - des = self._prop_mode.get_translation(v.get('description')) + des = self._prop_mode.get_translation(v.get('description'), viid=val) self._preset_modes[val] = des if self._prop_mode.value_range: for val in self._prop_mode.list_descriptions(): - des = self._prop_mode.get_translation(val) + des = self._prop_mode.get_translation(val, viid=val) self._preset_modes[val] = des if fst and len(self._hvac_modes) <= 1: self._hvac_modes[HVACMode.AUTO] = { diff --git a/custom_components/xiaomi_miot/core/device_customizes.py b/custom_components/xiaomi_miot/core/device_customizes.py index 22d100fb9..552299412 100644 --- a/custom_components/xiaomi_miot/core/device_customizes.py +++ b/custom_components/xiaomi_miot/core/device_customizes.py @@ -1669,7 +1669,6 @@ }, 'yeelink.bhf_light.v6': { 'select_properties': 'heat_mode,cold_mode,vent_mode', - 'trans_options': False, }, 'yeelink.bhf_light.v10': { 'chunk_properties': 1,