Fix translation string in hyperion (#128384)

This commit is contained in:
Julian 2024-10-16 21:28:17 +02:00 committed by GitHub
parent 82e9792b4d
commit f4dfe7868b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 3 additions and 5 deletions

View File

@ -52,6 +52,9 @@
"effect_show_list": "Hyperion effects to show" "effect_show_list": "Hyperion effects to show"
} }
} }
},
"abort": {
"cannot_connect": "[%key:common::config_flow::error::cannot_connect%]"
} }
}, },
"entity": { "entity": {

View File

@ -9,7 +9,6 @@ from typing import Any
from unittest.mock import AsyncMock, Mock, patch from unittest.mock import AsyncMock, Mock, patch
from hyperion import const from hyperion import const
import pytest
from homeassistant.components import ssdp from homeassistant.components import ssdp
from homeassistant.components.hyperion.const import ( from homeassistant.components.hyperion.const import (
@ -824,10 +823,6 @@ async def test_options_effect_show_list(hass: HomeAssistant) -> None:
assert result["data"][CONF_EFFECT_HIDE_LIST] == ["effect2"] assert result["data"][CONF_EFFECT_HIDE_LIST] == ["effect2"]
@pytest.mark.parametrize( # Remove when translations fixed
"ignore_translations",
["component.hyperion.options.abort.cannot_connect"],
)
async def test_options_effect_hide_list_cannot_connect(hass: HomeAssistant) -> None: async def test_options_effect_hide_list_cannot_connect(hass: HomeAssistant) -> None:
"""Check an options flow effect hide list with a failed connection.""" """Check an options flow effect hide list with a failed connection."""