Skip to content

Commit

Permalink
Update homeassistant/components/homematic/climate.py
Browse files Browse the repository at this point in the history
  • Loading branch information
joostlek authored Apr 4, 2024
1 parent 38224ac commit 7e834cb
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions homeassistant/components/homematic/climate.py
Original file line number Diff line number Diff line change
Expand Up @@ -113,8 +113,12 @@ 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 if mode in HM_PRESET_MAP]

return [
HM_PRESET_MAP[mode]
for mode in self._hmdevice.ACTIONNODE
if mode in HM_PRESET_MAP
]

@property
def current_humidity(self):
"""Return the current humidity."""
Expand Down

1 comment on commit 7e834cb

@bbr111
Copy link
Contributor

@bbr111 bbr111 commented on 7e834cb Apr 4, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@joostlek Thanks

Please sign in to comment.