mirror of
https://github.com/home-assistant/core.git
synced 2025-07-26 22:57:17 +00:00
Move imports into setup function in homekit __init__.py (#30137)
This commit is contained in:
parent
697833bc91
commit
e74c4c5d99
@ -303,6 +303,7 @@ class HomeKit:
|
|||||||
|
|
||||||
def setup(self):
|
def setup(self):
|
||||||
"""Set up bridge and accessory driver."""
|
"""Set up bridge and accessory driver."""
|
||||||
|
# pylint: disable=import-outside-toplevel
|
||||||
from .accessories import HomeBridge, HomeDriver
|
from .accessories import HomeBridge, HomeDriver
|
||||||
|
|
||||||
self.hass.bus.async_listen_once(EVENT_HOMEASSISTANT_STOP, self.stop)
|
self.hass.bus.async_listen_once(EVENT_HOMEASSISTANT_STOP, self.stop)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user