fix: delete all unsupported MIoT-Spec-V2 instances of Narwa vacuum (#1355)

This commit is contained in:
Li Shuzhen
2025-08-19 14:12:35 +08:00
committed by GitHub
parent 58c671483e
commit c29f7eecbd
3 changed files with 1428 additions and 0 deletions

View File

@ -513,6 +513,7 @@ class _MipsClient(ABC):
"""
self.__thread_check()
if not self._mqtt or not self._mqtt.is_connected():
self.log_error(f'mips sub when not connected, {topic}')
return
try:
if topic not in self._mips_sub_pending_map:
@ -531,6 +532,7 @@ class _MipsClient(ABC):
"""
self.__thread_check()
if not self._mqtt or not self._mqtt.is_connected():
self.log_debug(f'mips unsub when not connected, {topic}')
return
try:
result, mid = self._mqtt.unsubscribe(topic=topic)
@ -639,6 +641,7 @@ class _MipsClient(ABC):
_LOGGER.error('__on_connect, but mqtt is None')
return
if not self._mqtt.is_connected():
_LOGGER.error('__on_connect, but mqtt is disconnected')
return
self.log_info(f'mips connect, {flags}, {rc}, {props}')
self.__reset_reconnect_time()

File diff suppressed because it is too large Load Diff

View File

@ -48,3 +48,9 @@ urn:miot-spec-v2:device:thermostat:0000A031:tofan-wk01:
services:
- '2'
- '4'
urn:miot-spec-v2:device:vacuum:0000A006:narwa-001:
services:
- '*'
urn:miot-spec-v2:device:vacuum:0000A006:narwa-ax11:
services:
- '*'