Move imports into setup function in homekit __init__.py (#30137)
This commit is contained in:
parent
697833bc91
commit
e74c4c5d99
1 changed files with 1 additions and 0 deletions
|
@ -303,6 +303,7 @@ class HomeKit:
|
|||
|
||||
def setup(self):
|
||||
"""Set up bridge and accessory driver."""
|
||||
# pylint: disable=import-outside-toplevel
|
||||
from .accessories import HomeBridge, HomeDriver
|
||||
|
||||
self.hass.bus.async_listen_once(EVENT_HOMEASSISTANT_STOP, self.stop)
|
||||
|
|
Loading…
Add table
Reference in a new issue