mirror of
https://github.com/home-assistant/core.git
synced 2025-07-29 18:28:14 +02:00
Use f-strings in integrations starting with "H" - "L" (#32265)
* Use f-strings in integrations starting with "H" * Use f-strings in integrations starting with "I" * Use f-strings in integrations starting with "J" * Use f-strings in integrations starting with "K" * Use f-strings in integrations starting with "L" * Fix lint error * Use join instead of f-string in homekit_controller * Use local variables with f-strings * Fix lint error * Escape the characters in f-string * Sort imports with isort in homeworks light * Fix pylint error * Fix broken tests * Fix broken tests v2
This commit is contained in:
@ -84,7 +84,7 @@ def _detect_device_type(node) -> str:
|
||||
|
||||
split_type = device_type.split(".")
|
||||
for device_class, ids in ISY_DEVICE_TYPES.items():
|
||||
if "{}.{}".format(split_type[0], split_type[1]) in ids:
|
||||
if f"{split_type[0]}.{split_type[1]}" in ids:
|
||||
return device_class
|
||||
|
||||
return None
|
||||
|
Reference in New Issue
Block a user