String formatting and max line length - Part 5 (#84501)
Co-authored-by: jjlawren <jjlawren@users.noreply.github.com>
This commit is contained in:
parent
139dd22ce6
commit
f39f3b612a
59 changed files with 296 additions and 139 deletions
|
@ -141,7 +141,8 @@ class SwitcherDataUpdateCoordinator(update_coordinator.DataUpdateCoordinator):
|
|||
async def _async_update_data(self) -> None:
|
||||
"""Mark device offline if no data."""
|
||||
raise update_coordinator.UpdateFailed(
|
||||
f"Device {self.name} did not send update for {MAX_UPDATE_INTERVAL_SEC} seconds"
|
||||
f"Device {self.name} did not send update for"
|
||||
f" {MAX_UPDATE_INTERVAL_SEC} seconds"
|
||||
)
|
||||
|
||||
@property
|
||||
|
|
|
@ -153,6 +153,5 @@ class SwitcherThermostatButtonEntity(
|
|||
self.coordinator.last_update_success = False
|
||||
self.async_write_ha_state()
|
||||
raise HomeAssistantError(
|
||||
f"Call api for {self.name} failed, "
|
||||
f"response/error: {response or error}"
|
||||
f"Call api for {self.name} failed, response/error: {response or error}"
|
||||
)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue