mirror of
https://github.com/home-assistant/core.git
synced 2025-08-05 13:45:12 +02:00
Cleanup device handles on ZHA controller shutdown (#91591)
This commit is contained in:
@@ -733,6 +733,8 @@ class ZHAGateway:
|
|||||||
_LOGGER.debug("Shutting down ZHA ControllerApplication")
|
_LOGGER.debug("Shutting down ZHA ControllerApplication")
|
||||||
for unsubscribe in self._unsubs:
|
for unsubscribe in self._unsubs:
|
||||||
unsubscribe()
|
unsubscribe()
|
||||||
|
for device in self.devices.values():
|
||||||
|
device.async_cleanup_handles()
|
||||||
await self.application_controller.shutdown()
|
await self.application_controller.shutdown()
|
||||||
|
|
||||||
def handle_message(
|
def handle_message(
|
||||||
|
Reference in New Issue
Block a user