mirror of
https://github.com/XiaoMi/ha_xiaomi_home.git
synced 2026-01-15 05:50:43 +08:00
perf: get fan level
This commit is contained in:
parent
31ed45faf8
commit
3300eeb595
@ -318,9 +318,10 @@ class FeatureFanMode(MIoTServiceEntity, ClimateEntity):
|
||||
if self.get_prop_value(prop=self._prop_fan_on)
|
||||
else FAN_OFF
|
||||
)
|
||||
|
||||
fan_level = self.get_prop_value(prop=self._prop_fan_level)
|
||||
return None if fan_level is None else self._fan_mode_map[fan_level]
|
||||
return self.get_map_description(
|
||||
map_=self._fan_mode_map,
|
||||
key=self.get_prop_value(prop=self._prop_fan_level)
|
||||
)
|
||||
|
||||
|
||||
class FeatureSwingMode(MIoTServiceEntity, ClimateEntity):
|
||||
|
||||
Loading…
Reference in New Issue
Block a user