mirror of
https://github.com/home-assistant/core.git
synced 2025-07-16 09:47:13 +00:00
Fix paste error in homekit climate update (#123943)
This commit is contained in:
parent
3e967700fd
commit
9b33d2f17e
@ -625,11 +625,10 @@ class Thermostat(HomeAccessory):
|
||||
)
|
||||
|
||||
# Set current operation mode for supported thermostats
|
||||
if (hvac_action := attributes.get(ATTR_HVAC_ACTION)) and (
|
||||
homekit_hvac_action := HC_HASS_TO_HOMEKIT_ACTION.get(hvac_action),
|
||||
HC_HEAT_COOL_OFF,
|
||||
):
|
||||
self.char_current_heat_cool.set_value(homekit_hvac_action)
|
||||
if hvac_action := attributes.get(ATTR_HVAC_ACTION):
|
||||
self.char_current_heat_cool.set_value(
|
||||
HC_HASS_TO_HOMEKIT_ACTION.get(hvac_action, HC_HEAT_COOL_OFF)
|
||||
)
|
||||
|
||||
# Update current temperature
|
||||
current_temp = _get_current_temperature(new_state, self._unit)
|
||||
|
Loading…
x
Reference in New Issue
Block a user