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