mirror of
https://github.com/home-assistant/core.git
synced 2025-07-26 06:37:52 +00:00
Fix lyric heat cool setting (#47875)
This commit is contained in:
parent
912d5c347c
commit
18cbf3cdb2
@ -248,12 +248,20 @@ class LyricClimate(LyricDeviceEntity, ClimateEntity):
|
|||||||
|
|
||||||
device = self.device
|
device = self.device
|
||||||
if device.hasDualSetpointStatus:
|
if device.hasDualSetpointStatus:
|
||||||
if target_temp_low is not None and target_temp_high is not None:
|
if target_temp_low is None or target_temp_high is None:
|
||||||
temp = (target_temp_low, target_temp_high)
|
|
||||||
else:
|
|
||||||
raise HomeAssistantError(
|
raise HomeAssistantError(
|
||||||
"Could not find target_temp_low and/or target_temp_high in arguments"
|
"Could not find target_temp_low and/or target_temp_high in arguments"
|
||||||
)
|
)
|
||||||
|
_LOGGER.debug("Set temperature: %s - %s", target_temp_low, target_temp_high)
|
||||||
|
try:
|
||||||
|
await self._update_thermostat(
|
||||||
|
self.location,
|
||||||
|
device,
|
||||||
|
coolSetpoint=target_temp_low,
|
||||||
|
heatSetpoint=target_temp_high,
|
||||||
|
)
|
||||||
|
except LYRIC_EXCEPTIONS as exception:
|
||||||
|
_LOGGER.error(exception)
|
||||||
else:
|
else:
|
||||||
temp = kwargs.get(ATTR_TEMPERATURE)
|
temp = kwargs.get(ATTR_TEMPERATURE)
|
||||||
_LOGGER.debug("Set temperature: %s", temp)
|
_LOGGER.debug("Set temperature: %s", temp)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user