Skip to content
Snippets Groups Projects
Unverified Commit a3e6abd3 authored by Jan Bouwhuis's avatar Jan Bouwhuis Committed by GitHub
Browse files

Use hass.config_entries.async_setup in mqtt test (#77750)

* Use hass.config_entries.async_setup

* The setup is awaited hence waiting is not needed
parent b0d033ef
No related branches found
No related tags found
No related merge requests found
......@@ -1439,7 +1439,7 @@ async def test_unload_entry(hass, calls, device_reg, mqtt_mock, tmp_path) -> Non
new_yaml_config_file = tmp_path / "configuration.yaml"
new_yaml_config_file.write_text("")
with patch.object(hass_config, "YAML_CONFIG_FILE", new_yaml_config_file):
await mqtt_entry.async_setup(hass)
await hass.config_entries.async_setup(mqtt_entry.entry_id)
# Rediscover and fake short press 3
async_fire_mqtt_message(hass, "homeassistant/device_automation/bla1/config", data1)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment