Allow reloading iZone config entry (#89572)
* Allow reloading of iZone config entries --------- Co-authored-by: epenet <6771947+epenet@users.noreply.github.com>
This commit is contained in:
parent
8807878529
commit
db6f0827aa
3 changed files with 29 additions and 20 deletions
|
@ -95,7 +95,9 @@ async def async_setup_entry(
|
|||
init_controller(controller)
|
||||
|
||||
# connect to register any further components
|
||||
async_dispatcher_connect(hass, DISPATCH_CONTROLLER_DISCOVERED, init_controller)
|
||||
config.async_on_unload(
|
||||
async_dispatcher_connect(hass, DISPATCH_CONTROLLER_DISCOVERED, init_controller)
|
||||
)
|
||||
|
||||
platform = entity_platform.async_get_current_platform()
|
||||
platform.async_register_entity_service(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue