mirror of
https://github.com/home-assistant/core.git
synced 2025-07-09 22:37:11 +00:00
Abort rachio config entry setup when not connected to cloud (#64975)
This commit is contained in:
parent
d4497e4b68
commit
5071b3b959
@ -58,9 +58,14 @@ async def async_setup_entry(hass: HomeAssistant, entry: ConfigEntry) -> bool:
|
||||
|
||||
# Get the URL of this server
|
||||
rachio.webhook_auth = secrets.token_hex()
|
||||
webhook_id, webhook_url = await async_get_or_create_registered_webhook_id_and_url(
|
||||
hass, entry
|
||||
)
|
||||
try:
|
||||
(
|
||||
webhook_id,
|
||||
webhook_url,
|
||||
) = await async_get_or_create_registered_webhook_id_and_url(hass, entry)
|
||||
except cloud.CloudNotConnected as exc:
|
||||
# User has an active cloud subscription, but the connection to the cloud is down
|
||||
raise ConfigEntryNotReady from exc
|
||||
rachio.webhook_url = webhook_url
|
||||
|
||||
person = RachioPerson(rachio, entry)
|
||||
|
Loading…
x
Reference in New Issue
Block a user