Skip to content
Snippets Groups Projects
Unverified Commit cd5901e0 authored by J. Nick Koston's avatar J. Nick Koston Committed by GitHub
Browse files

Fix HomeKit thermostat to take priority over fans (#81473)

parent bad33da2
No related branches found
No related tags found
No related merge requests found
......@@ -306,7 +306,7 @@ class Thermostat(HomeAccessory):
if attributes.get(ATTR_HVAC_ACTION) is not None:
self.fan_chars.append(CHAR_CURRENT_FAN_STATE)
serv_fan = self.add_preload_service(SERV_FANV2, self.fan_chars)
serv_thermostat.add_linked_service(serv_fan)
serv_fan.add_linked_service(serv_thermostat)
self.char_active = serv_fan.configure_char(
CHAR_ACTIVE, value=1, setter_callback=self._set_fan_active
)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment