diff --git a/climate/heatzy/pilote_v1.py b/climate/heatzy/pilote_v1.py index 3d80be1..bb39570 100644 --- a/climate/heatzy/pilote_v1.py +++ b/climate/heatzy/pilote_v1.py @@ -71,11 +71,11 @@ async def async_set_operation_mode(self, operation_mode): async def async_turn_on(self): """Turn device on.""" - await self._api.async_set_operation_mode(STATE_HEAT) + await self.async_set_operation_mode(STATE_HEAT) async def async_turn_off(self): """Turn device off.""" - await self._api.async_set_operation_mode(STATE_OFF) + await self.async_set_operation_mode(STATE_OFF) async def async_update(self): """Retrieve latest state."""