Migrate Sensibo translations (#83310)

This commit is contained in:
Franck Nijhof 2022-12-06 08:59:48 +01:00 committed by GitHub
parent 5121952a85
commit c2da664bcc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 36 additions and 15 deletions

View File

@ -131,7 +131,7 @@ PURE_SENSOR_TYPES: tuple[SensiboDeviceSensorEntityDescription, ...] = (
icon="mdi:air-filter",
value_fn=lambda data: data.pure_sensitivity,
extra_fn=None,
device_class="sensibo__sensitivity",
translation_key="sensitivity",
),
FILTER_LAST_RESET_DESCRIPTION,
)
@ -174,7 +174,7 @@ DEVICE_SENSOR_TYPES: tuple[SensiboDeviceSensorEntityDescription, ...] = (
),
SensiboDeviceSensorEntityDescription(
key="climate_react_type",
device_class="sensibo__smart_type",
translation_key="smart_type",
name="Climate React type",
value_fn=lambda data: data.smart_type,
extra_fn=None,

View File

@ -29,5 +29,22 @@
}
}
}
},
"entity": {
"sensor": {
"sensitivity": {
"state": {
"n": "Normal",
"s": "Sensitive"
}
},
"smart_type": {
"state": {
"temperature": "Temperature",
"feelslike": "Feels like",
"humidity": "Humidity"
}
}
}
}
}

View File

@ -1,13 +0,0 @@
{
"state": {
"sensibo__sensitivity": {
"n": "Normal",
"s": "Sensitive"
},
"sensibo__smart_type": {
"temperature": "Temperature",
"feelslike": "Feels like",
"humidity": "Humidity"
}
}
}

View File

@ -29,5 +29,22 @@
}
}
}
},
"entity": {
"sensor": {
"sensitivity": {
"state": {
"n": "Normal",
"s": "Sensitive"
}
},
"smart_type": {
"state": {
"feelslike": "Feels like",
"humidity": "Humidity",
"temperature": "Temperature"
}
}
}
}
}