Skip to content

Commit

Permalink
Fix missing if statement in homematic (home-assistant#114832)
Browse files Browse the repository at this point in the history
* homematic fix issue home-assistant#114807

Update climate.py

* Update homeassistant/components/homematic/climate.py

---------

Co-authored-by: Joost Lekkerkerker <[email protected]>
  • Loading branch information
bbr111 and joostlek authored Apr 4, 2024
1 parent 5be5c37 commit e909242
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion homeassistant/components/homematic/climate.py
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,11 @@ def preset_mode(self):
@property
def preset_modes(self):
"""Return a list of available preset modes."""
return [HM_PRESET_MAP[mode] for mode in self._hmdevice.ACTIONNODE]
return [
HM_PRESET_MAP[mode]
for mode in self._hmdevice.ACTIONNODE
if mode in HM_PRESET_MAP
]

@property
def current_humidity(self):
Expand Down

0 comments on commit e909242

Please sign in to comment.