String formatting and max line length - Part 7 (#84532)
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
This commit is contained in:
parent
3149c52be1
commit
d4f69a3652
40 changed files with 249 additions and 110 deletions
|
@ -579,7 +579,10 @@ class Entity(ABC):
|
|||
self._disabled_reported = True
|
||||
assert self.platform is not None
|
||||
_LOGGER.warning(
|
||||
"Entity %s is incorrectly being triggered for updates while it is disabled. This is a bug in the %s integration",
|
||||
(
|
||||
"Entity %s is incorrectly being triggered for updates while it"
|
||||
" is disabled. This is a bug in the %s integration"
|
||||
),
|
||||
self.entity_id,
|
||||
self.platform.platform_name,
|
||||
)
|
||||
|
@ -767,7 +770,8 @@ class Entity(ABC):
|
|||
"""Start adding an entity to a platform."""
|
||||
if self._platform_state == EntityPlatformState.ADDED:
|
||||
raise HomeAssistantError(
|
||||
f"Entity {self.entity_id} cannot be added a second time to an entity platform"
|
||||
f"Entity {self.entity_id} cannot be added a second time to an entity"
|
||||
" platform"
|
||||
)
|
||||
|
||||
self.hass = hass
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue