add mqtt and device test

This commit is contained in:
HycJack
2026-04-26 20:07:41 +08:00
parent 7c12ca59dd
commit 389f6c4040
22 changed files with 742 additions and 32 deletions

View File

@@ -25,7 +25,10 @@ class OfflineAudioCache:
async def has_pending_audio(self, device_id: str) -> bool:
async with self.lock:
return device_id in self.offline_audio and len(self.offline_audio[device_id]) > 0
async def get_all_audio_cache(self) -> List[str]:
async with self.lock:
return self.offline_audio
# 单例实例
offline_audio_cache = OfflineAudioCache()