impressionyang
|
311cfbbe7e
|
fix: 修复平台文件和 OptionsFlow 错误
修复内容:
1. 所有平台文件添加 coordinator.data None 检查
- sensor.py, binary_sensor.py, switch.py, light.py, device_tracker.py
2. 修复 async_get_options_flow 签名
- 改为实例方法,移除 config_entry 参数
- 移除 @staticmethod 装饰器
3. OptionsFlow 添加正确的 __init__ 方法
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
|
2026-04-16 09:48:00 +08:00 |
|
impressionyang
|
19774a4a9f
|
fix: 修复平台加载和 OptionsFlow 错误
主要修复:
1. 将平台文件从 platforms/ 移到集成根目录
- sensor.py, binary_sensor.py, switch.py, light.py, device_tracker.py
2. 修复 OptionsFlow config_entry 属性错误
- 移除手动设置的 config_entry
3. 添加集成图标 icons/icon.png
4. manifest.json 添加 integration_type: device
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
|
2026-04-16 09:39:35 +08:00 |
|