mirror of
https://github.com/home-assistant/core.git
synced 2025-11-10 11:29:46 +00:00
Reolink translate key (#140821)
* Add firmware exception translations * Add test * Much nicer syntax * Check if translation key is present in string.json * fix tests * fix typo
This commit is contained in:
@@ -40,6 +40,14 @@ from tests.common import MockConfigEntry
|
||||
ApiError("Test error"),
|
||||
HomeAssistantError,
|
||||
),
|
||||
(
|
||||
ApiError("Test error", translation_key="firmware_rate_limit"),
|
||||
HomeAssistantError,
|
||||
),
|
||||
(
|
||||
ApiError("Test error", translation_key="not_in_strings.json"),
|
||||
HomeAssistantError,
|
||||
),
|
||||
(
|
||||
CredentialsInvalidError("Test error"),
|
||||
HomeAssistantError,
|
||||
|
||||
Reference in New Issue
Block a user