mirror of
https://github.com/XiaoMi/ha_xiaomi_home.git
synced 2026-01-15 22:10:43 +08:00
feat: ignore normal disconnect log
This commit is contained in:
parent
93905a10ee
commit
37a446f2d1
@ -663,7 +663,8 @@ class _MipsClient(ABC):
|
||||
|
||||
def __on_disconnect(self, client, user_data, rc, props) -> None:
|
||||
if self._mqtt_state:
|
||||
self.log_error(f'mips disconnect, {rc}, {props}')
|
||||
(self.log_info if rc == 0 else self.log_error)(
|
||||
f'mips disconnect, {rc}, {props}')
|
||||
self._mqtt_state = False
|
||||
if self._mqtt_timer:
|
||||
self._mqtt_timer.cancel()
|
||||
|
||||
Loading…
Reference in New Issue
Block a user