Migrate Plugwise translations (#83286)

pull/74619/head^2
Franck Nijhof 2022-12-05 12:18:20 +01:00 committed by GitHub
parent 63e8dd58ef
commit f0f4e4595c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 44 additions and 19 deletions

View File

@ -49,20 +49,20 @@ SELECT_TYPES = (
name="Regulation mode",
icon="mdi:hvac",
entity_category=EntityCategory.CONFIG,
translation_key="regulation_mode",
command=lambda api, loc, opt: api.set_regulation_mode(opt),
current_option_key="regulation_mode",
options_key="regulation_modes",
device_class="plugwise__regulation_mode",
),
PlugwiseSelectEntityDescription(
key="select_dhw_mode",
name="DHW mode",
icon="mdi:shower",
entity_category=EntityCategory.CONFIG,
translation_key="dhw_mode",
command=lambda api, loc, opt: api.set_dhw_mode(opt),
current_option_key="dhw_mode",
options_key="dhw_modes",
device_class="plugwise__dhw_mode",
),
)

View File

@ -24,5 +24,26 @@
"already_configured": "[%key:common::config_flow::abort::already_configured_service%]",
"anna_with_adam": "Both Anna and Adam detected. Add your Adam instead of your Anna"
}
},
"entity": {
"select": {
"dhw_mode": {
"state": {
"off": "Off",
"auto": "Auto",
"boost": "Boost",
"comfort": "Comfort"
}
},
"regulation_mode": {
"state": {
"bleeding_cold": "Bleeding cold",
"bleeding_hot": "Bleeding hot",
"cooling": "Cooling",
"heating": "Heating",
"off": "Off"
}
}
}
}
}

View File

@ -1,17 +0,0 @@
{
"state": {
"plugwise__regulation_mode": {
"bleeding_cold": "Bleeding cold",
"bleeding_hot": "Bleeding hot",
"cooling": "Cooling",
"heating": "Heating",
"off": "Off"
},
"plugwise__dhw_mode": {
"off": "Off",
"auto": "Auto",
"boost": "Boost",
"comfort": "Comfort"
}
}
}

View File

@ -24,5 +24,26 @@
"title": "Connect to the Smile"
}
}
},
"entity": {
"select": {
"dhw_mode": {
"state": {
"auto": "Auto",
"boost": "Boost",
"comfort": "Comfort",
"off": "Off"
}
},
"regulation_mode": {
"state": {
"bleeding_cold": "Bleeding cold",
"bleeding_hot": "Bleeding hot",
"cooling": "Cooling",
"heating": "Heating",
"off": "Off"
}
}
}
}
}