mirror of
https://github.com/home-assistant/core.git
synced 2025-07-25 22:27:07 +00:00
Use common state for "Error", fix sentence-casing in tplink_omada
(#143278)
* Use common state for "Error", fix sentence-casing in `tplink_omada` - replace "Error" with common state reference - correct missing sentence-casing in several strings * Update test_switch.ambr
This commit is contained in:
parent
626eb77060
commit
a9e77dc0db
@ -24,14 +24,14 @@
|
|||||||
"username": "[%key:common::config_flow::data::username%]",
|
"username": "[%key:common::config_flow::data::username%]",
|
||||||
"password": "[%key:common::config_flow::data::password%]"
|
"password": "[%key:common::config_flow::data::password%]"
|
||||||
},
|
},
|
||||||
"title": "Update TP-Link Omada Credentials",
|
"title": "Update TP-Link Omada credentials",
|
||||||
"description": "The provided credentials have stopped working. Please update them."
|
"description": "The provided credentials have stopped working. Please update them."
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"error": {
|
"error": {
|
||||||
"cannot_connect": "[%key:common::config_flow::error::cannot_connect%]",
|
"cannot_connect": "[%key:common::config_flow::error::cannot_connect%]",
|
||||||
"invalid_auth": "[%key:common::config_flow::error::invalid_auth%]",
|
"invalid_auth": "[%key:common::config_flow::error::invalid_auth%]",
|
||||||
"unsupported_controller": "Omada Controller version not supported.",
|
"unsupported_controller": "Omada controller version not supported.",
|
||||||
"unknown": "[%key:common::config_flow::error::unknown%]",
|
"unknown": "[%key:common::config_flow::error::unknown%]",
|
||||||
"no_sites_found": "No sites found which the user can manage."
|
"no_sites_found": "No sites found which the user can manage."
|
||||||
},
|
},
|
||||||
@ -46,31 +46,31 @@
|
|||||||
"name": "Port {port_name} PoE"
|
"name": "Port {port_name} PoE"
|
||||||
},
|
},
|
||||||
"wan_connect_ipv4": {
|
"wan_connect_ipv4": {
|
||||||
"name": "Port {port_name} Internet Connected"
|
"name": "Port {port_name} Internet connected"
|
||||||
},
|
},
|
||||||
"wan_connect_ipv6": {
|
"wan_connect_ipv6": {
|
||||||
"name": "Port {port_name} Internet Connected (IPv6)"
|
"name": "Port {port_name} Internet connected (IPv6)"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"binary_sensor": {
|
"binary_sensor": {
|
||||||
"wan_link": {
|
"wan_link": {
|
||||||
"name": "Port {port_name} Internet Link"
|
"name": "Port {port_name} Internet link"
|
||||||
},
|
},
|
||||||
"online_detection": {
|
"online_detection": {
|
||||||
"name": "Port {port_name} Online Detection"
|
"name": "Port {port_name} online detection"
|
||||||
},
|
},
|
||||||
"lan_status": {
|
"lan_status": {
|
||||||
"name": "Port {port_name} LAN Status"
|
"name": "Port {port_name} LAN status"
|
||||||
},
|
},
|
||||||
"poe_delivery": {
|
"poe_delivery": {
|
||||||
"name": "Port {port_name} PoE Delivery"
|
"name": "Port {port_name} PoE delivery"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"sensor": {
|
"sensor": {
|
||||||
"device_status": {
|
"device_status": {
|
||||||
"name": "Device status",
|
"name": "Device status",
|
||||||
"state": {
|
"state": {
|
||||||
"error": "Error",
|
"error": "[%key:common::state::error%]",
|
||||||
"disconnected": "[%key:common::state::disconnected%]",
|
"disconnected": "[%key:common::state::disconnected%]",
|
||||||
"connected": "[%key:common::state::connected%]",
|
"connected": "[%key:common::state::connected%]",
|
||||||
"pending": "Pending",
|
"pending": "Pending",
|
||||||
@ -91,7 +91,7 @@
|
|||||||
"services": {
|
"services": {
|
||||||
"reconnect_client": {
|
"reconnect_client": {
|
||||||
"name": "Reconnect wireless client",
|
"name": "Reconnect wireless client",
|
||||||
"description": "Tries to get wireless client to reconnect to Omada Network.",
|
"description": "Tries to get wireless client to reconnect to Omada network.",
|
||||||
"fields": {
|
"fields": {
|
||||||
"mac": {
|
"mac": {
|
||||||
"name": "MAC address",
|
"name": "MAC address",
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
# name: test_gateway_api_fail_disables_switch_entities
|
# name: test_gateway_api_fail_disables_switch_entities
|
||||||
StateSnapshot({
|
StateSnapshot({
|
||||||
'attributes': ReadOnlyDict({
|
'attributes': ReadOnlyDict({
|
||||||
'friendly_name': 'Test Router Port 4 Internet Connected',
|
'friendly_name': 'Test Router Port 4 Internet connected',
|
||||||
}),
|
}),
|
||||||
'context': <ANY>,
|
'context': <ANY>,
|
||||||
'entity_id': 'switch.test_router_port_4_internet_connected',
|
'entity_id': 'switch.test_router_port_4_internet_connected',
|
||||||
@ -15,7 +15,7 @@
|
|||||||
# name: test_gateway_connect_ipv4_switch
|
# name: test_gateway_connect_ipv4_switch
|
||||||
StateSnapshot({
|
StateSnapshot({
|
||||||
'attributes': ReadOnlyDict({
|
'attributes': ReadOnlyDict({
|
||||||
'friendly_name': 'Test Router Port 4 Internet Connected',
|
'friendly_name': 'Test Router Port 4 Internet connected',
|
||||||
}),
|
}),
|
||||||
'context': <ANY>,
|
'context': <ANY>,
|
||||||
'entity_id': 'switch.test_router_port_4_internet_connected',
|
'entity_id': 'switch.test_router_port_4_internet_connected',
|
||||||
@ -28,7 +28,7 @@
|
|||||||
# name: test_gateway_port_change_disables_switch_entities
|
# name: test_gateway_port_change_disables_switch_entities
|
||||||
StateSnapshot({
|
StateSnapshot({
|
||||||
'attributes': ReadOnlyDict({
|
'attributes': ReadOnlyDict({
|
||||||
'friendly_name': 'Test Router Port 4 Internet Connected',
|
'friendly_name': 'Test Router Port 4 Internet connected',
|
||||||
}),
|
}),
|
||||||
'context': <ANY>,
|
'context': <ANY>,
|
||||||
'entity_id': 'switch.test_router_port_4_internet_connected',
|
'entity_id': 'switch.test_router_port_4_internet_connected',
|
||||||
|
Loading…
x
Reference in New Issue
Block a user