The preset_modes property is supposed to return a list of available presets but was instead returning just the singular self._preset_mode internal property. I changed the behavior to return a list of the PRESET_HOLD and PRESET_HOME preset constants, plus changed the update function to return the PRESET_HOME if the hold status is not True.
These changes fixed an issue I was having synchronizing the entity to the Google Assistant service through Nabu Casa.
The preset_modes property is supposed to return a list of available presets but was instead returning just the singular self._preset_mode internal property. I changed the behavior to return a list of the PRESET_HOLD and PRESET_HOME preset constants, plus changed the update function to return the PRESET_HOME if the hold status is not True.
These changes fixed an issue I was having synchronizing the entity to the Google Assistant service through Nabu Casa.