Skip to content

Commit

Permalink
Shutdown grill when hvac_mode set to HVAC_MODE_OFF or HVAC_MODE_COOL
Browse files Browse the repository at this point in the history
  • Loading branch information
stephenpapierski committed Feb 13, 2021
1 parent 24cc1fb commit e279a35
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions custom_components/traeger/climate.py
Original file line number Diff line number Diff line change
Expand Up @@ -170,3 +170,8 @@ async def async_set_temperature(self, **kwargs):
"""Set new target temperature."""
temperature = kwargs.get(ATTR_TEMPERATURE)
self.client.set_temperature(self.grill_id, temperature)

def set_hvac_mode(self, hvac_mode):
"""Start grill shutdown sequence"""
if hvac_mode == HVAC_MODE_OFF or hvac_mode == HVAC_MODE_COOL:
self.client.shutdown_grill(self.grill_id)

0 comments on commit e279a35

Please sign in to comment.