Skip to content

Update mijiaapi requirement from <5,>=4.2 to >=4.2.1,<5 - #4

Open
dependabot[bot] wants to merge 1 commit into
mainfrom
dependabot/pip/mijiaapi-gte-4.2.1-and-lt-5
Open

Update mijiaapi requirement from <5,>=4.2 to >=4.2.1,<5#4
dependabot[bot] wants to merge 1 commit into
mainfrom
dependabot/pip/mijiaapi-gte-4.2.1-and-lt-5

Conversation

@dependabot

@dependabot dependabot Bot commented on behalf of github Sep 1, 2026

Copy link
Copy Markdown

Updates the requirements on mijiaapi to permit the latest version.

Changelog

Sourced from mijiaapi's changelog.

4.2.1 - 2026-08-19

bugfix

  • 修复 get_device_info 获取不含中文翻译的设备信息(如 lumi.gateway.v3)时因 i18n.zh_cn 缺失而抛出 KeyError 崩溃的问题,无中文翻译时描述回退为英文

4.2.0 - 2026-07-24

improvement

  • 重构 get_device_info 的属性/动作名去重逻辑,提取 _deduplicate_names 通用函数统一处理:同名时优先追加 siid,仍重复时追加 piid/aiid,替代之前基于 svc_type 的前缀方案
  • get_device_info 新增缓存版本号校验,缓存格式变更时自动失效并重新获取

4.1.3 - 2026-07-17

new feature

  • CLI 新增 action 子命令,支持按动作名称执行设备动作,并通过 --params 传入 JSON 参数
  • CLI 新增 statistics 子命令,支持按设备、统计键、数据类型与时间范围查询设备统计数据

improvement

  • 补充统计接口中 keydata_type 因设备型号而异、返回值需使用 json.loads() 解析等说明,并提供具体设备示例与旧设备 _v3 后缀迁移提示
  • MCP server 启动时隐藏 FastMCP banner,并限制 agent skill 仅可调用 uvx mijiaAPI 命令
  • 安装文档新增 Arch Linux AUR 安装方式

4.1.2 - 2026-06-27

improvement

  • MCP server 的 list_devices 工具在返回设备列表时为每个设备补充 homeroom 字段:通过家庭列表的 roomlist 反查每个设备 did 所在的家庭与房间,共享设备若不在任何房间则显示为"未知",与 CLI 行为保持一致

4.1.1 - 2026-06-27

improvement

  • CLI 的 -l/--list_devices 在列出设备时额外打印设备所属的 家庭房间:通过家庭列表的 roomlist 反查每个设备 did 所在的家庭与房间,共享设备若不在任何房间则显示为"未知";同时复用已获取的家庭列表,避免重复请求

4.1.0 - 2026-06-27

new feature

  • MCP server 新增 loginlogin_status 两个工具,支持在 MCP 会话内完成二维码登录,无需重启 server:login 先尝试刷新 token,失败则在后台线程长轮询等待扫码并返回二维码图片链接;login_status 查询登录结果(pending/success/error),成功后自动切换为新凭证
  • MCP server 启动时不再因认证缺失/失效而立即退出,而是以未认证状态启动并提示调用 login 工具完成登录
  • 新增 skills/SKILL.md,定义 mijia-api CLI 的 agent skill,供 AI 助手通过 uvx mijiaAPI 控制设备(明确禁止调用阻塞的 login/mcp 子命令)

improvement

  • MCP server 版本号与 Python 包版本同步,客户端可读取到正确的 server 版本
  • 重构 mijiaAPI 的二维码登录流程,将原 QRlogin 拆分为 _get_qr_login_data(获取二维码数据,不阻塞)与 _complete_qr_login(长轮询完成登录)两个内部方法,供 MCP server 的 login 工具复用;公开的 login() / QRlogin() 行为不变

... (truncated)

Commits

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

Updates the requirements on [mijiaapi](https://github.com/Do1e/mijia-api) to permit the latest version.
- [Changelog](https://github.com/Do1e/mijia-api/blob/main/docs/changelog.md)
- [Commits](Do1e/mijia-api@v4.2.0...v4.2.1)

---
updated-dependencies:
- dependency-name: mijiaapi
  dependency-version: 4.2.1
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot Bot added dependencies Pull requests that update a dependency file python Pull requests that update python code labels Sep 1, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file python Pull requests that update python code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants