Ensure config entry operations are always holding the lock (#117214)

Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
Co-authored-by: Paulus Schoutsen <balloob@gmail.com>
This commit is contained in:
J. Nick Koston
2024-05-12 08:20:08 +09:00
committed by GitHub
parent f55fcca0bb
commit 481de8cdc9
25 changed files with 256 additions and 84 deletions

View File

@@ -1927,7 +1927,7 @@ async def test_reload_entry_with_restored_subscriptions(
hass.config.components.add(mqtt.DOMAIN)
mqtt_client_mock.connect.return_value = 0
with patch("homeassistant.config.load_yaml_config_file", return_value={}):
await entry.async_setup(hass)
await hass.config_entries.async_setup(entry.entry_id)
await mqtt.async_subscribe(hass, "test-topic", record_calls)
await mqtt.async_subscribe(hass, "wild/+/card", record_calls)