mirror of
https://github.com/home-assistant/core.git
synced 2025-12-24 21:06:19 +00:00
Reload ESPHome config entries when dashboard info received (#86174)
This commit is contained in:
@@ -98,3 +98,14 @@ def mock_client(mock_device_info):
|
||||
"homeassistant.components.esphome.config_flow.APIClient", mock_client
|
||||
):
|
||||
yield mock_client
|
||||
|
||||
|
||||
@pytest.fixture
|
||||
def mock_dashboard():
|
||||
"""Mock dashboard."""
|
||||
data = {"configured": [], "importable": []}
|
||||
with patch(
|
||||
"esphome_dashboard_api.ESPHomeDashboardAPI.get_devices",
|
||||
return_value=data,
|
||||
):
|
||||
yield data
|
||||
|
||||
Reference in New Issue
Block a user