Allow platform unloading (#13784)

* Allow platform unloading

* Add tests

* Add last test
This commit is contained in:
Paulus Schoutsen authored and Pascal Vizeli committed 2018-04-12 14:28:54 +02:00
1 parent dd7e6edf61
commit f47572d3c0
12 files changed
+218 -14

No files matched your search

+1 -1
View File
@@ -200,7 +200,7 @@ async def setup_bridge(hass, mock_bridge):
config_entry = config_entries.ConfigEntry(1, hue.DOMAIN, 'Mock Title', {
'host': 'mock-host'
}, 'test')
await hass.config_entries.async_forward_entry(config_entry, 'light')
await hass.config_entries.async_forward_entry_setup(config_entry, 'light')
# To flush out the service call to update the group
await hass.async_block_till_done()