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:
1 parent
7714160f4c
commit
157f972d72
77 files changed
+158
-246
No files matched your search
@@ -53,7 +53,6 @@ AUTO_SETUP_YAML = "ihc_auto_setup.yaml"
|
||||
DOMAIN = "ihc"
|
||||
|
||||
IHC_CONTROLLER = "controller"
|
||||
IHC_DATA = "ihc{}"
|
||||
IHC_INFO = "info"
|
||||
IHC_PLATFORMS = ("binary_sensor", "light", "sensor", "switch")
|
||||
|
||||
@@ -236,7 +235,7 @@ def ihc_setup(hass, config, conf, controller_id):
|
||||
# Manual configuration
|
||||
get_manual_configuration(hass, config, conf, ihc_controller, controller_id)
|
||||
# Store controller configuration
|
||||
ihc_key = IHC_DATA.format(controller_id)
|
||||
ihc_key = f"ihc{controller_id}"
|
||||
hass.data[ihc_key] = {IHC_CONTROLLER: ihc_controller, IHC_INFO: conf[CONF_INFO]}
|
||||
setup_service_functions(hass, ihc_controller)
|
||||
return True
|
||||
|
||||
Reference in new issue
Block a user