deCONZ allow unloading of config entry (#14115)
* Working but incomplete * Remove events on unload * Add unload test * Fix failing sensor test * Improve unload test * Move DeconzEvent to init * Fix visual under-indentation
This commit is contained in:
1 parent
ef48a7ca2c
commit
3fd4987baf
8 files changed
+86
-31
No files matched your search
@@ -62,6 +62,11 @@ async def async_setup_entry(hass, entry):
|
||||
return await hass.data[DOMAIN].async_setup_entry(entry)
|
||||
|
||||
|
||||
async def async_unload_entry(hass, entry):
|
||||
"""Unload a config entry."""
|
||||
return await hass.data[DOMAIN].async_unload_entry(entry)
|
||||
|
||||
|
||||
# pylint: disable=no-self-use
|
||||
class BinarySensorDevice(Entity):
|
||||
"""Represent a binary sensor."""
|
||||
|
||||
Reference in new issue
Block a user