mirror of
https://github.com/XiaoMi/ha_xiaomi_home.git
synced 2026-01-19 16:59:36 +08:00
ignore broad exception warning
This commit is contained in:
parent
3f77738b90
commit
0872bf4f69
@ -1341,8 +1341,9 @@ class MIoTLan:
|
|||||||
try:
|
try:
|
||||||
# Scan devices
|
# Scan devices
|
||||||
self.ping(if_name=None, target_ip='255.255.255.255')
|
self.ping(if_name=None, target_ip='255.255.255.255')
|
||||||
except Exception:
|
except Exception as err: # pylint: disable=broad-exception-caught
|
||||||
# Ignore any exceptions to avoid blocking the loop
|
# Ignore any exceptions to avoid blocking the loop
|
||||||
|
_LOGGER.error('ping device error, %s', err)
|
||||||
pass
|
pass
|
||||||
scan_time = self.__get_next_scan_time()
|
scan_time = self.__get_next_scan_time()
|
||||||
self._scan_timer = self._internal_loop.call_later(
|
self._scan_timer = self._internal_loop.call_later(
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user