device + temp control
This commit is contained in:
@@ -211,14 +211,14 @@ class HeatPumpDataCoordinator(DataUpdateCoordinator):
|
||||
headers={"Content-Type": "application/x-www-form-urlencoded"}
|
||||
) as response:
|
||||
if response.status != 200:
|
||||
_LOGGER.error(f"Failed to set water setpoint: {response.status}")
|
||||
_LOGGER.error(f"Failed to set dhw setpoint: {response.status}")
|
||||
return False
|
||||
_LOGGER.info(f"Successfully set water setpoint to {temperature}")
|
||||
_LOGGER.info(f"Successfully set dhw setpoint to {temperature}")
|
||||
# Force an immediate data refresh
|
||||
await self.async_request_refresh()
|
||||
return True
|
||||
except Exception as err:
|
||||
_LOGGER.error(f"Error setting water setpoint: {err}")
|
||||
_LOGGER.error(f"Error setting dhw setpoint: {err}")
|
||||
return False
|
||||
|
||||
class HeatPumpEntity(CoordinatorEntity):
|
||||
|
||||
Reference in New Issue
Block a user