docs: 更新问题修复记录
- 添加 callback 导入缺失错误的修复记录
This commit is contained in:
parent
4031747635
commit
9c71db2807
34
问题修复记录.md
34
问题修复记录.md
@ -1,5 +1,39 @@
|
||||
# 问题修复记录
|
||||
|
||||
## 2026-04-16: 修复 callback 导入缺失错误
|
||||
|
||||
### 问题描述
|
||||
配置集成时出现 `"Invalid handler specified"` 错误
|
||||
|
||||
### 错误日志
|
||||
|
||||
#### 错误:配置流程无法加载
|
||||
```
|
||||
无法加载配置向导:{"message":"Invalid handler specified"}
|
||||
```
|
||||
|
||||
**原因**: `config_flow.py` 中使用了 `@callback` 装饰器但没有导入
|
||||
|
||||
### 解决方案
|
||||
|
||||
#### 修复:添加 callback 导入
|
||||
```python
|
||||
from homeassistant.core import callback
|
||||
```
|
||||
|
||||
### 提交记录
|
||||
| Commit | 说明 |
|
||||
|--------|------|
|
||||
| 4031747 | fix: 添加缺失的 callback 导入 |
|
||||
|
||||
### 部署步骤
|
||||
```bash
|
||||
cp -r custom_components/sigmesh_gateway ~/.homeassistant/custom_components/
|
||||
ha core restart
|
||||
```
|
||||
|
||||
---
|
||||
|
||||
## 2026-04-16: 修复平台加载和 OptionsFlow 错误(第二次修复)
|
||||
|
||||
### 问题描述
|
||||
|
||||
Loading…
Reference in New Issue
Block a user