Fix unhandled exception in Ambient PWS config entry (#21278)
This commit is contained in:
parent
a2877c4ea0
commit
d0e88d9628
1 changed files with 2 additions and 1 deletions
|
@ -263,7 +263,8 @@ async def async_setup_entry(hass, config_entry):
|
|||
Client(
|
||||
config_entry.data[CONF_API_KEY],
|
||||
config_entry.data[CONF_APP_KEY], session),
|
||||
hass.data[DOMAIN][DATA_CONFIG].get(CONF_MONITORED_CONDITIONS, []))
|
||||
hass.data[DOMAIN].get(DATA_CONFIG, {}).get(
|
||||
CONF_MONITORED_CONDITIONS, []))
|
||||
hass.loop.create_task(ambient.ws_connect())
|
||||
hass.data[DOMAIN][DATA_CLIENT][config_entry.entry_id] = ambient
|
||||
except WebsocketError as err:
|
||||
|
|
Loading…
Add table
Reference in a new issue