mirror of
https://github.com/home-assistant/core.git
synced 2025-07-25 22:27:07 +00:00
Ignore the ignored konnected config entries (#32845)
* ignore the ignored konnected config entries * key off data instead of source
This commit is contained in:
parent
1391f90a30
commit
ef54f33af7
@ -306,6 +306,7 @@ class KonnectedView(HomeAssistantView):
|
|||||||
[
|
[
|
||||||
entry.data[CONF_ACCESS_TOKEN]
|
entry.data[CONF_ACCESS_TOKEN]
|
||||||
for entry in hass.config_entries.async_entries(DOMAIN)
|
for entry in hass.config_entries.async_entries(DOMAIN)
|
||||||
|
if entry.data.get(CONF_ACCESS_TOKEN)
|
||||||
]
|
]
|
||||||
)
|
)
|
||||||
if auth is None or not next(
|
if auth is None or not next(
|
||||||
|
@ -582,6 +582,10 @@ async def test_state_updates(hass, aiohttp_client, mock_panel):
|
|||||||
)
|
)
|
||||||
entry.add_to_hass(hass)
|
entry.add_to_hass(hass)
|
||||||
|
|
||||||
|
# Add empty data field to ensure we process it correctly (possible if entry is ignored)
|
||||||
|
entry = MockConfigEntry(domain="konnected", title="Konnected Alarm Panel", data={},)
|
||||||
|
entry.add_to_hass(hass)
|
||||||
|
|
||||||
assert (
|
assert (
|
||||||
await async_setup_component(
|
await async_setup_component(
|
||||||
hass,
|
hass,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user