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
@@ -90,9 +90,7 @@ def setup_platform(hass, config, add_entities, discovery_info=None):
|
||||
new_device = HpIloSensor(
|
||||
hass=hass,
|
||||
hp_ilo_data=hp_ilo_data,
|
||||
sensor_name="{} {}".format(
|
||||
config.get(CONF_NAME), monitored_variable[CONF_NAME]
|
||||
),
|
||||
sensor_name=f"{config.get(CONF_NAME)} {monitored_variable[CONF_NAME]}",
|
||||
sensor_type=monitored_variable[CONF_SENSOR_TYPE],
|
||||
sensor_value_template=monitored_variable.get(CONF_VALUE_TEMPLATE),
|
||||
unit_of_measurement=monitored_variable.get(CONF_UNIT_OF_MEASUREMENT),
|
||||
|
||||
Reference in new issue
Block a user