mirror of
https://github.com/home-assistant/core.git
synced 2025-07-19 11:17:21 +00:00
Streamline Peblar translations (#133883)
This commit is contained in:
parent
abe00884ea
commit
6cbc803b28
@ -20,7 +20,7 @@
|
||||
"data_description": {
|
||||
"password": "[%key:component::peblar::config::step::user::data_description::password%]"
|
||||
},
|
||||
"description": "Reauthenticate with your Peblar RV charger.\n\nTo do so, you will need to enter your new password you use to log into Peblar's device web interface."
|
||||
"description": "Reauthenticate with your Peblar EV charger.\n\nTo do so, you will need to enter your new password you use to log into Peblar EV charger' web interface."
|
||||
},
|
||||
"reconfigure": {
|
||||
"data": {
|
||||
@ -31,7 +31,7 @@
|
||||
"host": "[%key:component::peblar::config::step::user::data_description::host%]",
|
||||
"password": "[%key:component::peblar::config::step::user::data_description::password%]"
|
||||
},
|
||||
"description": "Reconfigure your Peblar EV charger.\n\nThis allows you to change the IP address of your Peblar charger and the password you use to log into the Peblar device' web interface."
|
||||
"description": "Reconfigure your Peblar EV charger.\n\nThis allows you to change the IP address of your Peblar EV charger and the password you use to log into its web interface."
|
||||
},
|
||||
"user": {
|
||||
"data": {
|
||||
@ -39,10 +39,10 @@
|
||||
"password": "[%key:common::config_flow::data::password%]"
|
||||
},
|
||||
"data_description": {
|
||||
"host": "The hostname or IP address of your Peblar charger on your home network.",
|
||||
"password": "The same password as you use to log in to the Peblar device' local web interface."
|
||||
"host": "The hostname or IP address of your Peblar EV charger on your home network.",
|
||||
"password": "The same password as you use to log in to the Peblar EV charger' local web interface."
|
||||
},
|
||||
"description": "Set up your Peblar EV charger to integrate with Home Assistant.\n\nTo do so, you will need to get the IP address of your Peblar charger and the password you use to log into the Peblar device' web interface.\n\nHome Assistant will automatically configure your Peblar charger for use with Home Assistant."
|
||||
"description": "Set up your Peblar EV charger to integrate with Home Assistant.\n\nTo do so, you will need to get the IP address of your Peblar EV charger and the password you use to log into its web interface.\n\nHome Assistant will automatically configure your Peblar EV charger for use with Home Assistant."
|
||||
},
|
||||
"zeroconf_confirm": {
|
||||
"data": {
|
||||
@ -51,7 +51,7 @@
|
||||
"data_description": {
|
||||
"password": "[%key:component::peblar::config::step::user::data_description::password%]"
|
||||
},
|
||||
"description": "Set up your Peblar EV charger to integrate with Home Assistant.\n\nTo do so, you will need the password you use to log into the Peblar device' web interface.\n\nHome Assistant will automatically configure your Peblar charger for use with Home Assistant."
|
||||
"description": "Set up your Peblar EV charger to integrate with Home Assistant.\n\nTo do so, you will need the password you use to log into the Peblar EV charger' web interface.\n\nHome Assistant will automatically configure your Peblar EV charger for use with Home Assistant."
|
||||
}
|
||||
}
|
||||
},
|
||||
@ -164,13 +164,13 @@
|
||||
},
|
||||
"exceptions": {
|
||||
"authentication_error": {
|
||||
"message": "An authentication failure occurred while communicating with the Peblar device."
|
||||
"message": "An authentication failure occurred while communicating with the Peblar EV charger."
|
||||
},
|
||||
"communication_error": {
|
||||
"message": "An error occurred while communicating with the Peblar device: {error}"
|
||||
"message": "An error occurred while communicating with the Peblar EV charger: {error}"
|
||||
},
|
||||
"unknown_error": {
|
||||
"message": "An unknown error occurred while communicating with the Peblar device: {error}"
|
||||
"message": "An unknown error occurred while communicating with the Peblar EV charger: {error}"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -23,7 +23,7 @@ async def test_entities(
|
||||
"""Test the binary sensors entities."""
|
||||
await snapshot_platform(hass, entity_registry, snapshot, mock_config_entry.entry_id)
|
||||
|
||||
# Ensure all entities are correctly assigned to the Peblar device
|
||||
# Ensure all entities are correctly assigned to the Peblar EV charger
|
||||
device_entry = device_registry.async_get_device(
|
||||
identifiers={(DOMAIN, "23-45-A4O-MOF")}
|
||||
)
|
||||
|
@ -34,7 +34,7 @@ async def test_entities(
|
||||
"""Test the button entities."""
|
||||
await snapshot_platform(hass, entity_registry, snapshot, mock_config_entry.entry_id)
|
||||
|
||||
# Ensure all entities are correctly assigned to the Peblar device
|
||||
# Ensure all entities are correctly assigned to the Peblar EV charger
|
||||
device_entry = device_registry.async_get_device(
|
||||
identifiers={(DOMAIN, "23-45-A4O-MOF")}
|
||||
)
|
||||
@ -81,7 +81,7 @@ async def test_buttons(
|
||||
HomeAssistantError,
|
||||
match=(
|
||||
r"An error occurred while communicating "
|
||||
r"with the Peblar device: Could not connect"
|
||||
r"with the Peblar EV charger: Could not connect"
|
||||
),
|
||||
) as excinfo:
|
||||
await hass.services.async_call(
|
||||
@ -101,7 +101,7 @@ async def test_buttons(
|
||||
HomeAssistantError,
|
||||
match=(
|
||||
r"An unknown error occurred while communicating "
|
||||
r"with the Peblar device: Unknown error"
|
||||
r"with the Peblar EV charger: Unknown error"
|
||||
),
|
||||
) as excinfo:
|
||||
await hass.services.async_call(
|
||||
@ -122,7 +122,7 @@ async def test_buttons(
|
||||
HomeAssistantError,
|
||||
match=(
|
||||
r"An authentication failure occurred while communicating "
|
||||
r"with the Peblar device"
|
||||
r"with the Peblar EV charger"
|
||||
),
|
||||
) as excinfo:
|
||||
await hass.services.async_call(
|
||||
|
@ -26,7 +26,7 @@ pytestmark = [
|
||||
(
|
||||
PeblarConnectionError("Could not connect"),
|
||||
(
|
||||
"An error occurred while communicating with the Peblar device: "
|
||||
"An error occurred while communicating with the Peblar EV charger: "
|
||||
"Could not connect"
|
||||
),
|
||||
),
|
||||
@ -34,7 +34,7 @@ pytestmark = [
|
||||
PeblarError("Unknown error"),
|
||||
(
|
||||
"An unknown error occurred while communicating "
|
||||
"with the Peblar device: Unknown error"
|
||||
"with the Peblar EV charger: Unknown error"
|
||||
),
|
||||
),
|
||||
],
|
||||
|
@ -36,7 +36,7 @@ async def test_entities(
|
||||
"""Test the number entities."""
|
||||
await snapshot_platform(hass, entity_registry, snapshot, mock_config_entry.entry_id)
|
||||
|
||||
# Ensure all entities are correctly assigned to the Peblar device
|
||||
# Ensure all entities are correctly assigned to the Peblar EV charger
|
||||
device_entry = device_registry.async_get_device(
|
||||
identifiers={(DOMAIN, "23-45-A4O-MOF")}
|
||||
)
|
||||
@ -80,7 +80,7 @@ async def test_number_set_value(
|
||||
PeblarConnectionError("Could not connect"),
|
||||
(
|
||||
r"An error occurred while communicating "
|
||||
r"with the Peblar device: Could not connect"
|
||||
r"with the Peblar EV charger: Could not connect"
|
||||
),
|
||||
"communication_error",
|
||||
{"error": "Could not connect"},
|
||||
@ -89,7 +89,7 @@ async def test_number_set_value(
|
||||
PeblarError("Unknown error"),
|
||||
(
|
||||
r"An unknown error occurred while communicating "
|
||||
r"with the Peblar device: Unknown error"
|
||||
r"with the Peblar EV charger: Unknown error"
|
||||
),
|
||||
"unknown_error",
|
||||
{"error": "Unknown error"},
|
||||
@ -143,7 +143,7 @@ async def test_number_set_value_authentication_error(
|
||||
HomeAssistantError,
|
||||
match=(
|
||||
r"An authentication failure occurred while communicating "
|
||||
r"with the Peblar device"
|
||||
r"with the Peblar EV charger"
|
||||
),
|
||||
) as excinfo:
|
||||
await hass.services.async_call(
|
||||
|
@ -41,7 +41,7 @@ async def test_entities(
|
||||
"""Test the select entities."""
|
||||
await snapshot_platform(hass, entity_registry, snapshot, mock_config_entry.entry_id)
|
||||
|
||||
# Ensure all entities are correctly assigned to the Peblar device
|
||||
# Ensure all entities are correctly assigned to the Peblar EV charger
|
||||
device_entry = device_registry.async_get_device(
|
||||
identifiers={(DOMAIN, "23-45-A4O-MOF")}
|
||||
)
|
||||
@ -85,7 +85,7 @@ async def test_select_option(
|
||||
PeblarConnectionError("Could not connect"),
|
||||
(
|
||||
r"An error occurred while communicating "
|
||||
r"with the Peblar device: Could not connect"
|
||||
r"with the Peblar EV charger: Could not connect"
|
||||
),
|
||||
"communication_error",
|
||||
{"error": "Could not connect"},
|
||||
@ -94,7 +94,7 @@ async def test_select_option(
|
||||
PeblarError("Unknown error"),
|
||||
(
|
||||
r"An unknown error occurred while communicating "
|
||||
r"with the Peblar device: Unknown error"
|
||||
r"with the Peblar EV charger: Unknown error"
|
||||
),
|
||||
"unknown_error",
|
||||
{"error": "Unknown error"},
|
||||
@ -150,7 +150,7 @@ async def test_select_option_authentication_error(
|
||||
HomeAssistantError,
|
||||
match=(
|
||||
r"An authentication failure occurred while communicating "
|
||||
r"with the Peblar device"
|
||||
r"with the Peblar EV charger"
|
||||
),
|
||||
) as excinfo:
|
||||
await hass.services.async_call(
|
||||
|
@ -24,7 +24,7 @@ async def test_entities(
|
||||
"""Test the sensor entities."""
|
||||
await snapshot_platform(hass, entity_registry, snapshot, mock_config_entry.entry_id)
|
||||
|
||||
# Ensure all entities are correctly assigned to the Peblar device
|
||||
# Ensure all entities are correctly assigned to the Peblar EV charger
|
||||
device_entry = device_registry.async_get_device(
|
||||
identifiers={(DOMAIN, "23-45-A4O-MOF")}
|
||||
)
|
||||
|
@ -36,7 +36,7 @@ async def test_entities(
|
||||
"""Test the switch entities."""
|
||||
await snapshot_platform(hass, entity_registry, snapshot, mock_config_entry.entry_id)
|
||||
|
||||
# Ensure all entities are correctly assigned to the Peblar device
|
||||
# Ensure all entities are correctly assigned to the Peblar EV charger
|
||||
device_entry = device_registry.async_get_device(
|
||||
identifiers={(DOMAIN, "23-45-A4O-MOF")}
|
||||
)
|
||||
@ -88,7 +88,7 @@ async def test_switch(
|
||||
PeblarConnectionError("Could not connect"),
|
||||
(
|
||||
r"An error occurred while communicating "
|
||||
r"with the Peblar device: Could not connect"
|
||||
r"with the Peblar EV charger: Could not connect"
|
||||
),
|
||||
"communication_error",
|
||||
{"error": "Could not connect"},
|
||||
@ -97,7 +97,7 @@ async def test_switch(
|
||||
PeblarError("Unknown error"),
|
||||
(
|
||||
r"An unknown error occurred while communicating "
|
||||
r"with the Peblar device: Unknown error"
|
||||
r"with the Peblar EV charger: Unknown error"
|
||||
),
|
||||
"unknown_error",
|
||||
{"error": "Unknown error"},
|
||||
@ -152,7 +152,7 @@ async def test_switch_authentication_error(
|
||||
HomeAssistantError,
|
||||
match=(
|
||||
r"An authentication failure occurred while communicating "
|
||||
r"with the Peblar device"
|
||||
r"with the Peblar EV charger"
|
||||
),
|
||||
) as excinfo:
|
||||
await hass.services.async_call(
|
||||
|
@ -23,7 +23,7 @@ async def test_entities(
|
||||
"""Test the update entities."""
|
||||
await snapshot_platform(hass, entity_registry, snapshot, mock_config_entry.entry_id)
|
||||
|
||||
# Ensure all entities are correctly assigned to the Peblar device
|
||||
# Ensure all entities are correctly assigned to the Peblar EV charger
|
||||
device_entry = device_registry.async_get_device(
|
||||
identifiers={(DOMAIN, "23-45-A4O-MOF")}
|
||||
)
|
||||
|
Loading…
x
Reference in New Issue
Block a user