mirror of
https://github.com/XiaoMi/ha_xiaomi_home.git
synced 2025-06-21 10:03:09 +08:00
misc: remove tev dependency for lan control & fixs (#333)
* Remove tev & fix some type issues * Use call_soon_threadsafe instead of event fd for ipc * fix lint * add tev back * fix lint * ignore broad exception warning * revert changes in the license * do not set asyncio event loop * fix racing condition * remove unused data classes * change internal class scope * set timers to None after cancel * Adjust import order * fix typo * Fix typo in comments * guard lan apis with init_done
This commit is contained in:
@ -1089,7 +1089,7 @@ class MIoTClient:
|
||||
handler=self.__on_lan_device_state_changed)
|
||||
for did, info in (
|
||||
await self._miot_lan.get_dev_list_async()).items():
|
||||
self.__on_lan_device_state_changed(
|
||||
await self.__on_lan_device_state_changed(
|
||||
did=did, state=info, ctx=None)
|
||||
_LOGGER.info('lan device list, %s', self._device_list_lan)
|
||||
self._miot_lan.update_devices(devices={
|
||||
|
Reference in New Issue
Block a user