mirror of
https://github.com/home-assistant/core.git
synced 2025-07-15 01:07:10 +00:00
Fix HomeKit thermostat to take priority over fans (#81473)
This commit is contained in:
parent
bad33da2c1
commit
cd5901e0d0
@ -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
|
||||
)
|
||||
|
Loading…
x
Reference in New Issue
Block a user