mirror of
https://github.com/home-assistant/core.git
synced 2025-08-04 21:25:13 +02:00
MySensors: Fix gw_stop and the translations
This commit is contained in:
@@ -214,7 +214,7 @@ async def async_unload_entry(hass: HomeAssistantType, entry: ConfigEntry) -> boo
|
|||||||
|
|
||||||
del hass.data[DOMAIN][MYSENSORS_GATEWAYS][entry.entry_id]
|
del hass.data[DOMAIN][MYSENSORS_GATEWAYS][entry.entry_id]
|
||||||
|
|
||||||
await gw_stop(hass, gateway)
|
await gw_stop(hass, entry, gateway)
|
||||||
return True
|
return True
|
||||||
|
|
||||||
|
|
||||||
|
@@ -1,19 +1,58 @@
|
|||||||
{
|
{
|
||||||
"config": {
|
"config": {
|
||||||
"abort": {
|
"abort": {
|
||||||
"already_configured": "Device is already configured"
|
"already_configured": "Device is already configured",
|
||||||
|
"single_instance_allowed": "Already configured. Only a single configuration possible."
|
||||||
},
|
},
|
||||||
"error": {
|
"error": {
|
||||||
"cannot_connect": "Failed to connect",
|
"cannot_connect": "Failed to connect",
|
||||||
"invalid_auth": "Invalid authentication",
|
"invalid_subscribe_topic": "Invalid subscribe topic",
|
||||||
|
"invalid_publish_topic": "Invalid publish topic",
|
||||||
|
"invalid_port": "Invalid port number",
|
||||||
|
"invalid_persistence_file": "Invalid persistence file",
|
||||||
|
"invalid_ip": "Invalid IP address",
|
||||||
|
"invalid_serial": "Invalid serial port",
|
||||||
|
"invalid_device": "Invalid device",
|
||||||
|
"invalid_version": "Invalid MySensors version",
|
||||||
|
"not_a_number": "Please enter a number",
|
||||||
|
"port_out_of_range": "Port number must be at least 1 and at most 65535",
|
||||||
"unknown": "Unexpected error"
|
"unknown": "Unexpected error"
|
||||||
},
|
},
|
||||||
"step": {
|
"step": {
|
||||||
"user": {
|
"user": {
|
||||||
"data": {
|
"data": {
|
||||||
"host": "Host",
|
"optimistic": "optimistic",
|
||||||
"password": "Password",
|
"persistence": "persistence",
|
||||||
"username": "Username"
|
"gateway_type_mqtt": "MQTT"
|
||||||
|
},
|
||||||
|
"description": "Choose connection method to the gateway"
|
||||||
|
},
|
||||||
|
"gw_tcp": {
|
||||||
|
"description": "Ethernet gateway setup",
|
||||||
|
"data": {
|
||||||
|
"device": "IP address of the gateway",
|
||||||
|
"tcp_port": "port",
|
||||||
|
"version": "MySensors version",
|
||||||
|
"persistence_file": "persistence file (leave empty to auto-generate)"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"gw_serial": {
|
||||||
|
"description": "Serial gateway setup",
|
||||||
|
"data": {
|
||||||
|
"device": "Serial port",
|
||||||
|
"baud_rate": "baud rate",
|
||||||
|
"version": "MySensors version",
|
||||||
|
"persistence_file": "persistence file (leave empty to auto-generate)"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"gw_mqtt": {
|
||||||
|
"description": "MQTT gateway setup",
|
||||||
|
"data": {
|
||||||
|
"retain": "mqtt retain",
|
||||||
|
"topic_in_prefix": "prefix for input topics (topic_in_prefix)",
|
||||||
|
"topic_out_prefix": "prefix for output topics (topic_out_prefix)",
|
||||||
|
"version": "MySensors version",
|
||||||
|
"persistence_file": "persistence file (leave empty to auto-generate)"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user