Streamline Peblar translations (#133883)

This commit is contained in:
Duco Sebel 2024-12-23 16:38:34 +01:00 committed by GitHub
parent abe00884ea
commit 6cbc803b28
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
9 changed files with 30 additions and 30 deletions

View File

@ -20,7 +20,7 @@
"data_description": { "data_description": {
"password": "[%key:component::peblar::config::step::user::data_description::password%]" "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": { "reconfigure": {
"data": { "data": {
@ -31,7 +31,7 @@
"host": "[%key:component::peblar::config::step::user::data_description::host%]", "host": "[%key:component::peblar::config::step::user::data_description::host%]",
"password": "[%key:component::peblar::config::step::user::data_description::password%]" "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": { "user": {
"data": { "data": {
@ -39,10 +39,10 @@
"password": "[%key:common::config_flow::data::password%]" "password": "[%key:common::config_flow::data::password%]"
}, },
"data_description": { "data_description": {
"host": "The hostname or IP address of your Peblar charger on your home network.", "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 device' local web interface." "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": { "zeroconf_confirm": {
"data": { "data": {
@ -51,7 +51,7 @@
"data_description": { "data_description": {
"password": "[%key:component::peblar::config::step::user::data_description::password%]" "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": { "exceptions": {
"authentication_error": { "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": { "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": { "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}"
} }
} }
} }

View File

@ -23,7 +23,7 @@ async def test_entities(
"""Test the binary sensors entities.""" """Test the binary sensors entities."""
await snapshot_platform(hass, entity_registry, snapshot, mock_config_entry.entry_id) 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( device_entry = device_registry.async_get_device(
identifiers={(DOMAIN, "23-45-A4O-MOF")} identifiers={(DOMAIN, "23-45-A4O-MOF")}
) )

View File

@ -34,7 +34,7 @@ async def test_entities(
"""Test the button entities.""" """Test the button entities."""
await snapshot_platform(hass, entity_registry, snapshot, mock_config_entry.entry_id) 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( device_entry = device_registry.async_get_device(
identifiers={(DOMAIN, "23-45-A4O-MOF")} identifiers={(DOMAIN, "23-45-A4O-MOF")}
) )
@ -81,7 +81,7 @@ async def test_buttons(
HomeAssistantError, HomeAssistantError,
match=( match=(
r"An error occurred while communicating " 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: ) as excinfo:
await hass.services.async_call( await hass.services.async_call(
@ -101,7 +101,7 @@ async def test_buttons(
HomeAssistantError, HomeAssistantError,
match=( match=(
r"An unknown error occurred while communicating " r"An unknown error occurred while communicating "
r"with the Peblar device: Unknown error" r"with the Peblar EV charger: Unknown error"
), ),
) as excinfo: ) as excinfo:
await hass.services.async_call( await hass.services.async_call(
@ -122,7 +122,7 @@ async def test_buttons(
HomeAssistantError, HomeAssistantError,
match=( match=(
r"An authentication failure occurred while communicating " r"An authentication failure occurred while communicating "
r"with the Peblar device" r"with the Peblar EV charger"
), ),
) as excinfo: ) as excinfo:
await hass.services.async_call( await hass.services.async_call(

View File

@ -26,7 +26,7 @@ pytestmark = [
( (
PeblarConnectionError("Could not connect"), 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" "Could not connect"
), ),
), ),
@ -34,7 +34,7 @@ pytestmark = [
PeblarError("Unknown error"), PeblarError("Unknown error"),
( (
"An unknown error occurred while communicating " "An unknown error occurred while communicating "
"with the Peblar device: Unknown error" "with the Peblar EV charger: Unknown error"
), ),
), ),
], ],

View File

@ -36,7 +36,7 @@ async def test_entities(
"""Test the number entities.""" """Test the number entities."""
await snapshot_platform(hass, entity_registry, snapshot, mock_config_entry.entry_id) 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( device_entry = device_registry.async_get_device(
identifiers={(DOMAIN, "23-45-A4O-MOF")} identifiers={(DOMAIN, "23-45-A4O-MOF")}
) )
@ -80,7 +80,7 @@ async def test_number_set_value(
PeblarConnectionError("Could not connect"), PeblarConnectionError("Could not connect"),
( (
r"An error occurred while communicating " 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", "communication_error",
{"error": "Could not connect"}, {"error": "Could not connect"},
@ -89,7 +89,7 @@ async def test_number_set_value(
PeblarError("Unknown error"), PeblarError("Unknown error"),
( (
r"An unknown error occurred while communicating " r"An unknown error occurred while communicating "
r"with the Peblar device: Unknown error" r"with the Peblar EV charger: Unknown error"
), ),
"unknown_error", "unknown_error",
{"error": "Unknown error"}, {"error": "Unknown error"},
@ -143,7 +143,7 @@ async def test_number_set_value_authentication_error(
HomeAssistantError, HomeAssistantError,
match=( match=(
r"An authentication failure occurred while communicating " r"An authentication failure occurred while communicating "
r"with the Peblar device" r"with the Peblar EV charger"
), ),
) as excinfo: ) as excinfo:
await hass.services.async_call( await hass.services.async_call(

View File

@ -41,7 +41,7 @@ async def test_entities(
"""Test the select entities.""" """Test the select entities."""
await snapshot_platform(hass, entity_registry, snapshot, mock_config_entry.entry_id) 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( device_entry = device_registry.async_get_device(
identifiers={(DOMAIN, "23-45-A4O-MOF")} identifiers={(DOMAIN, "23-45-A4O-MOF")}
) )
@ -85,7 +85,7 @@ async def test_select_option(
PeblarConnectionError("Could not connect"), PeblarConnectionError("Could not connect"),
( (
r"An error occurred while communicating " 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", "communication_error",
{"error": "Could not connect"}, {"error": "Could not connect"},
@ -94,7 +94,7 @@ async def test_select_option(
PeblarError("Unknown error"), PeblarError("Unknown error"),
( (
r"An unknown error occurred while communicating " r"An unknown error occurred while communicating "
r"with the Peblar device: Unknown error" r"with the Peblar EV charger: Unknown error"
), ),
"unknown_error", "unknown_error",
{"error": "Unknown error"}, {"error": "Unknown error"},
@ -150,7 +150,7 @@ async def test_select_option_authentication_error(
HomeAssistantError, HomeAssistantError,
match=( match=(
r"An authentication failure occurred while communicating " r"An authentication failure occurred while communicating "
r"with the Peblar device" r"with the Peblar EV charger"
), ),
) as excinfo: ) as excinfo:
await hass.services.async_call( await hass.services.async_call(

View File

@ -24,7 +24,7 @@ async def test_entities(
"""Test the sensor entities.""" """Test the sensor entities."""
await snapshot_platform(hass, entity_registry, snapshot, mock_config_entry.entry_id) 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( device_entry = device_registry.async_get_device(
identifiers={(DOMAIN, "23-45-A4O-MOF")} identifiers={(DOMAIN, "23-45-A4O-MOF")}
) )

View File

@ -36,7 +36,7 @@ async def test_entities(
"""Test the switch entities.""" """Test the switch entities."""
await snapshot_platform(hass, entity_registry, snapshot, mock_config_entry.entry_id) 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( device_entry = device_registry.async_get_device(
identifiers={(DOMAIN, "23-45-A4O-MOF")} identifiers={(DOMAIN, "23-45-A4O-MOF")}
) )
@ -88,7 +88,7 @@ async def test_switch(
PeblarConnectionError("Could not connect"), PeblarConnectionError("Could not connect"),
( (
r"An error occurred while communicating " 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", "communication_error",
{"error": "Could not connect"}, {"error": "Could not connect"},
@ -97,7 +97,7 @@ async def test_switch(
PeblarError("Unknown error"), PeblarError("Unknown error"),
( (
r"An unknown error occurred while communicating " r"An unknown error occurred while communicating "
r"with the Peblar device: Unknown error" r"with the Peblar EV charger: Unknown error"
), ),
"unknown_error", "unknown_error",
{"error": "Unknown error"}, {"error": "Unknown error"},
@ -152,7 +152,7 @@ async def test_switch_authentication_error(
HomeAssistantError, HomeAssistantError,
match=( match=(
r"An authentication failure occurred while communicating " r"An authentication failure occurred while communicating "
r"with the Peblar device" r"with the Peblar EV charger"
), ),
) as excinfo: ) as excinfo:
await hass.services.async_call( await hass.services.async_call(

View File

@ -23,7 +23,7 @@ async def test_entities(
"""Test the update entities.""" """Test the update entities."""
await snapshot_platform(hass, entity_registry, snapshot, mock_config_entry.entry_id) 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( device_entry = device_registry.async_get_device(
identifiers={(DOMAIN, "23-45-A4O-MOF")} identifiers={(DOMAIN, "23-45-A4O-MOF")}
) )