Skip to content

Commit

Permalink
🛀 fix for yeelink.bhf_light.v6 (#2010)
Browse files Browse the repository at this point in the history
  • Loading branch information
al-one committed Dec 10, 2024
1 parent ba345c2 commit 62231c7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
4 changes: 2 additions & 2 deletions custom_components/xiaomi_miot/climate.py
Original file line number Diff line number Diff line change
Expand Up @@ -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] = {
Expand Down
1 change: 0 additions & 1 deletion custom_components/xiaomi_miot/core/device_customizes.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 62231c7

Please sign in to comment.