Add support for tilt only covers to HomeKit (#53130)
This commit is contained in:
parent
cb1eab6c24
commit
236738c455
4 changed files with 86 additions and 12 deletions
|
@ -127,7 +127,7 @@ def get_accessory(hass, driver, state, aid, config): # noqa: C901
|
|||
and features & cover.SUPPORT_SET_POSITION
|
||||
):
|
||||
a_type = "Window"
|
||||
elif features & cover.SUPPORT_SET_POSITION:
|
||||
elif features & (cover.SUPPORT_SET_POSITION | cover.SUPPORT_SET_TILT_POSITION):
|
||||
a_type = "WindowCovering"
|
||||
elif features & (cover.SUPPORT_OPEN | cover.SUPPORT_CLOSE):
|
||||
a_type = "WindowCoveringBasic"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue