- Added validation to ensure MQTT integration is configured before setting up the JackeryHome integration. - Updated error handling in the configuration flow to provide user feedback if MQTT is not available. - Improved logging for MQTT subscription processes and error handling in the data coordinator. - Updated user interface strings to reflect the new requirements for MQTT integration.
23 lines
829 B
JSON
23 lines
829 B
JSON
{
|
|
"config": {
|
|
"step": {
|
|
"user": {
|
|
"title": "配置 JackeryHome",
|
|
"description": "设置您的 JackeryHome 能源监控集成。注意:必须先配置 MQTT 集成。",
|
|
"data": {
|
|
"topic_prefix": "MQTT 主题前缀"
|
|
}
|
|
}
|
|
},
|
|
"error": {
|
|
"already_configured": "该集成已配置",
|
|
"mqtt_not_configured": "MQTT 集成未配置或不可用。请先设置 MQTT 集成:设置 -> 设备与服务 -> 添加集成 -> MQTT",
|
|
"single_instance_allowed": "只允许一个此集成的实例"
|
|
},
|
|
"abort": {
|
|
"already_configured": "该集成已配置",
|
|
"single_instance_allowed": "只允许一个此集成的实例"
|
|
}
|
|
}
|
|
}
|