Support homekit matches that have a dash after the model (#33274)
This commit is contained in:
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(
|
||||
|
||||
Reference in new issue
Block a user