Add input_select and select domain support for HomeKit (#54760)

Co-authored-by: J. Nick Koston <nick@koston.org>
This commit is contained in:
ha0y 2021-08-30 13:28:26 -07:00 committed by GitHub
parent 46f05ca279
commit 433775cf4b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 117 additions and 1 deletions

View file

@ -198,6 +198,9 @@ def get_accessory(hass, driver, state, aid, config): # noqa: C901
elif state.domain in ("automation", "input_boolean", "remote", "scene", "script"):
a_type = "Switch"
elif state.domain in ("input_select", "select"):
a_type = "SelectSwitch"
elif state.domain == "water_heater":
a_type = "WaterHeater"