Add translations and icon for Twinkly select entity (#139336)

Co-authored-by: Joost Lekkerkerker <joostlek@outlook.com>
This commit is contained in:
Paul Bottein 2025-02-26 13:44:43 +01:00 committed by GitHub
parent ee01aa73b8
commit e591157e37
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
4 changed files with 23 additions and 2 deletions

View File

@ -4,6 +4,11 @@
"light": {
"default": "mdi:string-lights"
}
},
"select": {
"mode": {
"default": "mdi:cogs"
}
}
}
}

View File

@ -29,7 +29,7 @@ async def async_setup_entry(
class TwinklyModeSelect(TwinklyEntity, SelectEntity):
"""Twinkly Mode Selection."""
_attr_name = "Mode"
_attr_translation_key = "mode"
_attr_options = TWINKLY_MODES
def __init__(self, coordinator: TwinklyCoordinator) -> None:

View File

@ -20,5 +20,21 @@
"abort": {
"already_configured": "[%key:common::config_flow::abort::already_configured_device%]"
}
},
"entity": {
"select": {
"mode": {
"name": "Mode",
"state": {
"color": "Color",
"demo": "Demo",
"effect": "Effect",
"movie": "Uploaded effect",
"off": "[%key:common::state::off%]",
"playlist": "Playlist",
"rt": "Real time"
}
}
}
}
}

View File

@ -38,7 +38,7 @@
'platform': 'twinkly',
'previous_unique_id': None,
'supported_features': 0,
'translation_key': None,
'translation_key': 'mode',
'unique_id': '00:2d:13:3b:aa:bb_mode',
'unit_of_measurement': None,
})