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:
Penny Wood 2023-03-28 14:47:45 +08:00 committed by GitHub
parent 8807878529
commit db6f0827aa
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 29 additions and 20 deletions

View file

@ -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(