1
0
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:
Paulus Schoutsen
2023-01-18 11:59:55 -05:00
committed by GitHub
parent c40c37e9ee
commit 29337bc6eb
10 changed files with 106 additions and 70 deletions

View File

@@ -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