mirror of
https://github.com/home-assistant/core.git
synced 2025-07-23 13:17:32 +00:00
Fix iFrame panel test
This commit is contained in:
parent
192db5bec3
commit
5581c6295e
@ -53,9 +53,7 @@ class TestPanelIframe(unittest.TestCase):
|
|||||||
},
|
},
|
||||||
})
|
})
|
||||||
|
|
||||||
# 5 dev tools + map are automatically loaded + 2 iframe panels
|
assert self.hass.data[frontend.DATA_PANELS].get('router') == {
|
||||||
assert len(self.hass.data[frontend.DATA_PANELS]) == 8
|
|
||||||
assert self.hass.data[frontend.DATA_PANELS]['router'] == {
|
|
||||||
'component_name': 'iframe',
|
'component_name': 'iframe',
|
||||||
'config': {'url': 'http://192.168.1.1'},
|
'config': {'url': 'http://192.168.1.1'},
|
||||||
'icon': 'mdi:network-wireless',
|
'icon': 'mdi:network-wireless',
|
||||||
@ -64,7 +62,7 @@ class TestPanelIframe(unittest.TestCase):
|
|||||||
'url_path': 'router'
|
'url_path': 'router'
|
||||||
}
|
}
|
||||||
|
|
||||||
assert self.hass.data[frontend.DATA_PANELS]['weather'] == {
|
assert self.hass.data[frontend.DATA_PANELS].get('weather') == {
|
||||||
'component_name': 'iframe',
|
'component_name': 'iframe',
|
||||||
'config': {'url': 'https://www.wunderground.com/us/ca/san-diego'},
|
'config': {'url': 'https://www.wunderground.com/us/ca/san-diego'},
|
||||||
'icon': 'mdi:weather',
|
'icon': 'mdi:weather',
|
||||||
|
Loading…
x
Reference in New Issue
Block a user