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:
parent
7714160f4c
commit
157f972d72
77 changed files with 158 additions and 246 deletions
|
@ -1,7 +1,7 @@
|
|||
"""Support for an Intergas heater via an InComfort/InTouch Lan2RF gateway."""
|
||||
from typing import Any, Dict, Optional
|
||||
|
||||
from homeassistant.components.sensor import ENTITY_ID_FORMAT
|
||||
from homeassistant.components.sensor import DOMAIN as SENSOR_DOMAIN
|
||||
from homeassistant.const import (
|
||||
DEVICE_CLASS_PRESSURE,
|
||||
DEVICE_CLASS_TEMPERATURE,
|
||||
|
@ -49,7 +49,7 @@ class IncomfortSensor(IncomfortChild):
|
|||
self._heater = heater
|
||||
|
||||
self._unique_id = f"{heater.serial_no}_{slugify(name)}"
|
||||
self.entity_id = ENTITY_ID_FORMAT.format(f"{DOMAIN}_{slugify(name)}")
|
||||
self.entity_id = f"{SENSOR_DOMAIN}.{DOMAIN}_{slugify(name)}"
|
||||
self._name = f"Boiler {name}"
|
||||
|
||||
self._device_class = None
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue