mirror of
https://github.com/home-assistant/core.git
synced 2026-09-26 09:23:17 -04:00
Fix missing f-string prefix in prowl error message (#182362)
Co-authored-by: Claude Opus 5 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Opus 5
parent
b796adea21
commit
9a69397e71
@@ -30,7 +30,7 @@ async def async_setup_entry(hass: HomeAssistant, entry: ConfigEntry) -> bool:
|
||||
except prowlpy.APIError as ex:
|
||||
if str(ex).startswith("Not accepted: exceeded rate limit"):
|
||||
raise ConfigEntryNotReady("Prowl API rate limit exceeded") from ex
|
||||
raise ConfigEntryError("Failed to validate Prowl API key ({ex})") from ex
|
||||
raise ConfigEntryError(f"Failed to validate Prowl API key ({ex})") from ex
|
||||
|
||||
await hass.config_entries.async_forward_entry_setups(entry, PLATFORMS)
|
||||
return True
|
||||
|
||||
Reference in New Issue
Block a user