Improve string formatting v4 (#33668)
* Improve string formatting v4 * Use normal strings instead of f-strings * Fix zeroconf test by adding back part of a condition
This commit is contained in:
1 parent
b855177fe6
commit
e3bcfb88e7
20 files changed
+43
-47
No files matched your search
@@ -134,8 +134,8 @@ def handle_homekit(hass, info) -> bool:
|
||||
for test_model in HOMEKIT:
|
||||
if (
|
||||
model != test_model
|
||||
and not model.startswith(test_model + " ")
|
||||
and not model.startswith(test_model + "-")
|
||||
and not model.startswith(f"{test_model} ")
|
||||
and not model.startswith(f"{test_model}-")
|
||||
):
|
||||
continue
|
||||
|
||||
|
||||
Reference in new issue
Block a user