mirror of
https://github.com/home-assistant/core.git
synced 2025-07-21 12:17:07 +00:00
Migrate TOLO Sauna translations (#83306)
* Migrate TOLO Sauna translations * Fix capa
This commit is contained in:
parent
03dc527a85
commit
73162e6fb5
@ -27,11 +27,11 @@ async def async_setup_entry(
|
|||||||
class ToloLampModeSelect(ToloSaunaCoordinatorEntity, SelectEntity):
|
class ToloLampModeSelect(ToloSaunaCoordinatorEntity, SelectEntity):
|
||||||
"""TOLO Sauna lamp mode select."""
|
"""TOLO Sauna lamp mode select."""
|
||||||
|
|
||||||
_attr_device_class = "tolo__lamp_mode"
|
|
||||||
_attr_entity_category = EntityCategory.CONFIG
|
_attr_entity_category = EntityCategory.CONFIG
|
||||||
_attr_icon = "mdi:lightbulb-multiple-outline"
|
_attr_icon = "mdi:lightbulb-multiple-outline"
|
||||||
_attr_name = "Lamp Mode"
|
_attr_name = "Lamp Mode"
|
||||||
_attr_options = [lamp_mode.name.lower() for lamp_mode in LampMode]
|
_attr_options = [lamp_mode.name.lower() for lamp_mode in LampMode]
|
||||||
|
_attr_translation_key = "lamp_mode"
|
||||||
|
|
||||||
def __init__(
|
def __init__(
|
||||||
self, coordinator: ToloSaunaUpdateCoordinator, entry: ConfigEntry
|
self, coordinator: ToloSaunaUpdateCoordinator, entry: ConfigEntry
|
||||||
|
@ -18,5 +18,15 @@
|
|||||||
"abort": {
|
"abort": {
|
||||||
"already_configured": "[%key:common::config_flow::abort::already_configured_device%]"
|
"already_configured": "[%key:common::config_flow::abort::already_configured_device%]"
|
||||||
}
|
}
|
||||||
|
},
|
||||||
|
"entity": {
|
||||||
|
"select": {
|
||||||
|
"lamp_mode": {
|
||||||
|
"state": {
|
||||||
|
"automatic": "Automatic",
|
||||||
|
"manual": "Manual"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -1,8 +0,0 @@
|
|||||||
{
|
|
||||||
"state": {
|
|
||||||
"tolo__lamp_mode": {
|
|
||||||
"automatic": "automatic",
|
|
||||||
"manual": "manual"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
@ -18,5 +18,15 @@
|
|||||||
"description": "Enter the hostname or IP address of your TOLO Sauna device."
|
"description": "Enter the hostname or IP address of your TOLO Sauna device."
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
},
|
||||||
|
"entity": {
|
||||||
|
"select": {
|
||||||
|
"lamp_mode": {
|
||||||
|
"state": {
|
||||||
|
"automatic": "Automatic",
|
||||||
|
"manual": "Manual"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
Loading…
x
Reference in New Issue
Block a user