Skip to content

Commit

Permalink
Attempt to fix missing holidayMode in BRP069B4x devices
Browse files Browse the repository at this point in the history
  • Loading branch information
rospogrigio committed Oct 20, 2022
1 parent 7437aac commit f0f21bf
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion custom_components/daikin_residential/daikin_base.py
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,8 @@ async def async_set_hvac_mode(self, hvac_mode):
def support_preset_mode(self, mode):
"""Return True if the device supports preset mode."""
mode = HA_PRESET_TO_DAIKIN[mode]
return self.getData(mode) is not None
mode_data = self.getData(mode)
return mode_data is not None and "value" in mode_data

def preset_mode_status(self, mode):
"""Return the preset mode status."""
Expand Down

0 comments on commit f0f21bf

Please sign in to comment.