mirror of
https://github.com/XiaoMi/ha_xiaomi_home.git
synced 2026-01-18 16:10:44 +08:00
do not set asyncio event loop
This commit is contained in:
parent
30e0433aee
commit
463216d866
@ -612,7 +612,6 @@ class MIoTLan:
|
|||||||
|
|
||||||
def __internal_loop_thread(self) -> None:
|
def __internal_loop_thread(self) -> None:
|
||||||
_LOGGER.info('miot lan thread start')
|
_LOGGER.info('miot lan thread start')
|
||||||
asyncio.set_event_loop(self._internal_loop)
|
|
||||||
self.__init_socket()
|
self.__init_socket()
|
||||||
self._scan_timer = self._internal_loop.call_later(
|
self._scan_timer = self._internal_loop.call_later(
|
||||||
int(3*random.random()), self.__scan_devices)
|
int(3*random.random()), self.__scan_devices)
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user