Enable Ruff RUF010 (#115371)
Co-authored-by: J. Nick Koston <nick@koston.org>
This commit is contained in:
parent
589104f63d
commit
ac54cdcdb4
51 changed files with 88 additions and 95 deletions
|
@ -67,7 +67,7 @@ async def async_setup_entry(hass: HomeAssistant, config_entry: ConfigEntry) -> b
|
|||
) as err:
|
||||
await host.stop()
|
||||
raise ConfigEntryNotReady(
|
||||
f"Error while trying to setup {host.api.host}:{host.api.port}: {str(err)}"
|
||||
f"Error while trying to setup {host.api.host}:{host.api.port}: {err!s}"
|
||||
) from err
|
||||
except Exception:
|
||||
await host.stop()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue