Validate config entry when adding or updating entity registry entry (#135067)

This commit is contained in:
Erik Montnemery
2025-01-17 19:18:13 +01:00
committed by GitHub
parent 028a0d4eec
commit 235fda55fe
13 changed files with 71 additions and 7 deletions
+1 -1
View File
@@ -444,6 +444,7 @@ async def test_no_listen_start(
version=1,
data={"username": "foo", "token": {}},
)
mock_entry.add_to_hass(hass)
# Create a binary sensor entity so it is not ignored by the deprecation check
# and the listener will start
entity_registry.async_get_or_create(
@@ -457,7 +458,6 @@ async def test_no_listen_start(
mock_ring_event_listener_class.return_value.started = False
mock_entry.add_to_hass(hass)
await hass.config_entries.async_setup(mock_entry.entry_id)
await hass.async_block_till_done()