1
0
mirror of https://github.com/hanxi/xiaomusic.git synced 2026-05-07 00:15:59 +08:00

fix: 尝试修复登录问题

This commit is contained in:
涵曦
2025-10-25 18:02:11 +08:00
parent cfc34d1e97
commit ecd7e90533
2 changed files with 5 additions and 3 deletions

View File

@@ -77,9 +77,9 @@ extend-immutable-calls = [
]
[tool.pdm.scripts]
lint = "ruff check ."
fmt = "ruff format ."
lintfmt = {composite = ["ruff check --fix .", "ruff format ."]}
lint = "ruff check . --exclude MiService"
fmt = "ruff format . --exclude MiService"
lintfmt = {composite = ["ruff check --fix . --exclude MiService", "ruff format . --exclude MiService"]}
[tool.commitizen]
name = "cz_conventional_commits"

View File

@@ -2061,6 +2061,8 @@ class XiaoMusicDevice:
await self.xiaomusic.mina_service.text_to_speech(self.device_id, value)
except Exception as e:
self.log.exception(f"Execption {e}")
# 重新初始化
await self.xiaomusic.reinit()
# 同一组设备播放
async def group_player_play(self, url, name=""):