Support homekit matches that have a dash after the model (#33274)

This commit is contained in:
J. Nick Koston authored and GitHub committed 2020-03-26 15:15:35 -07:00
1 parent f5a6c3484d
commit f93e4e3de7
2 files changed
+23 -2

No files matched your search

@@ -132,7 +132,11 @@ def handle_homekit(hass, info) -> bool:
return False
for test_model in HOMEKIT:
if model != test_model and not model.startswith(test_model + " "):
if (
model != test_model
and not model.startswith(test_model + " ")
and not model.startswith(test_model + "-")
):
continue
hass.add_job(