Add Plugwise climate preset translations (#84617)
This commit is contained in:
parent
dea513cdbd
commit
a83d577b42
3 changed files with 32 additions and 1 deletions
|
@ -41,8 +41,9 @@ async def async_setup_entry(
|
||||||
class PlugwiseClimateEntity(PlugwiseEntity, ClimateEntity):
|
class PlugwiseClimateEntity(PlugwiseEntity, ClimateEntity):
|
||||||
"""Representation of an Plugwise thermostat."""
|
"""Representation of an Plugwise thermostat."""
|
||||||
|
|
||||||
_attr_temperature_unit = UnitOfTemperature.CELSIUS
|
|
||||||
_attr_has_entity_name = True
|
_attr_has_entity_name = True
|
||||||
|
_attr_temperature_unit = UnitOfTemperature.CELSIUS
|
||||||
|
_attr_translation_key = DOMAIN
|
||||||
|
|
||||||
def __init__(
|
def __init__(
|
||||||
self,
|
self,
|
||||||
|
|
|
@ -26,6 +26,21 @@
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"entity": {
|
"entity": {
|
||||||
|
"climate": {
|
||||||
|
"plugwise": {
|
||||||
|
"state_attributes": {
|
||||||
|
"preset_mode": {
|
||||||
|
"state": {
|
||||||
|
"asleep": "Night",
|
||||||
|
"away": "Away",
|
||||||
|
"home": "Home",
|
||||||
|
"no_frost": "Anti-frost",
|
||||||
|
"vacation": "Vacation"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
"select": {
|
"select": {
|
||||||
"dhw_mode": {
|
"dhw_mode": {
|
||||||
"state": {
|
"state": {
|
||||||
|
|
|
@ -26,6 +26,21 @@
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"entity": {
|
"entity": {
|
||||||
|
"climate": {
|
||||||
|
"plugwise": {
|
||||||
|
"state_attributes": {
|
||||||
|
"preset_mode": {
|
||||||
|
"state": {
|
||||||
|
"asleep": "Night",
|
||||||
|
"away": "Away",
|
||||||
|
"home": "Home",
|
||||||
|
"no_frost": "Anti-frost",
|
||||||
|
"vacation": "Vacation"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
"select": {
|
"select": {
|
||||||
"dhw_mode": {
|
"dhw_mode": {
|
||||||
"state": {
|
"state": {
|
||||||
|
|
Loading…
Add table
Reference in a new issue