mirror of
https://github.com/home-assistant/core.git
synced 2025-07-23 05:07:41 +00:00
Fix TypeError when climate component sets fan modes to None (#54709)
Co-authored-by: Joakim Sørensen <hi@ludeeus.dev>
This commit is contained in:
parent
35389a6d28
commit
441552e04c
@ -1290,7 +1290,7 @@ class FanSpeedTrait(_Trait):
|
||||
)
|
||||
|
||||
elif domain == climate.DOMAIN:
|
||||
modes = self.state.attributes.get(climate.ATTR_FAN_MODES, [])
|
||||
modes = self.state.attributes.get(climate.ATTR_FAN_MODES) or []
|
||||
for mode in modes:
|
||||
speed = {
|
||||
"speed_name": mode,
|
||||
|
Loading…
x
Reference in New Issue
Block a user