* Fix demo

* Fix types

* Fix all the things

* Fix type

* Fix test

* Lint
This commit is contained in:
Paulus Schoutsen 2019-04-14 16:59:06 -07:00 committed by GitHub
parent 1d2e9b6915
commit 6b0180f753
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
20 changed files with 137 additions and 200 deletions

View file

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