Enable Ruff RUF010 (#115371)

Co-authored-by: J. Nick Koston <nick@koston.org>
This commit is contained in:
Sid 2024-05-08 23:54:49 +02:00 committed by GitHub
parent 589104f63d
commit ac54cdcdb4
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
51 changed files with 88 additions and 95 deletions

View file

@ -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()