Fix demo (#23087)
* Fix demo * Fix types * Fix all the things * Fix type * Fix test * Lint
This commit is contained in:
1 parent
1d2e9b6915
commit
6b0180f753
20 files changed
+137
-200
No files matched your search
@@ -210,7 +210,7 @@ async def test_themes_reload_themes(hass, hass_ws_client):
|
||||
|
||||
async def test_missing_themes(hass, hass_ws_client):
|
||||
"""Test that themes API works when themes are not defined."""
|
||||
await async_setup_component(hass, 'frontend')
|
||||
await async_setup_component(hass, 'frontend', {})
|
||||
|
||||
client = await hass_ws_client(hass)
|
||||
await client.send_json({
|
||||
@@ -247,7 +247,7 @@ def test_extra_urls_es5(mock_http_client_with_urls, mock_onboarded):
|
||||
|
||||
async def test_get_panels(hass, hass_ws_client):
|
||||
"""Test get_panels command."""
|
||||
await async_setup_component(hass, 'frontend')
|
||||
await async_setup_component(hass, 'frontend', {})
|
||||
await hass.components.frontend.async_register_built_in_panel(
|
||||
'map', 'Map', 'mdi:tooltip-account', require_admin=True)
|
||||
|
||||
@@ -272,7 +272,7 @@ async def test_get_panels(hass, hass_ws_client):
|
||||
async def test_get_panels_non_admin(hass, hass_ws_client, hass_admin_user):
|
||||
"""Test get_panels command."""
|
||||
hass_admin_user.groups = []
|
||||
await async_setup_component(hass, 'frontend')
|
||||
await async_setup_component(hass, 'frontend', {})
|
||||
await hass.components.frontend.async_register_built_in_panel(
|
||||
'map', 'Map', 'mdi:tooltip-account', require_admin=True)
|
||||
await hass.components.frontend.async_register_built_in_panel(
|
||||
@@ -295,7 +295,7 @@ async def test_get_panels_non_admin(hass, hass_ws_client, hass_admin_user):
|
||||
|
||||
async def test_get_translations(hass, hass_ws_client):
|
||||
"""Test get_translations command."""
|
||||
await async_setup_component(hass, 'frontend')
|
||||
await async_setup_component(hass, 'frontend', {})
|
||||
client = await hass_ws_client(hass)
|
||||
|
||||
with patch('homeassistant.components.frontend.async_get_translations',
|
||||
|
||||
Reference in new issue
Block a user