mirror of
https://github.com/home-assistant/core.git
synced 2025-04-23 16:57:53 +00:00
Add translations and icon for Twinkly select entity (#139336)
Co-authored-by: Joost Lekkerkerker <joostlek@outlook.com>
This commit is contained in:
parent
ee01aa73b8
commit
e591157e37
@ -4,6 +4,11 @@
|
||||
"light": {
|
||||
"default": "mdi:string-lights"
|
||||
}
|
||||
},
|
||||
"select": {
|
||||
"mode": {
|
||||
"default": "mdi:cogs"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -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:
|
||||
|
@ -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"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -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,
|
||||
})
|
||||
|
Loading…
x
Reference in New Issue
Block a user