Fix translation bug

This commit is contained in:
jimmyd-be
2023-09-01 14:52:02 +00:00
parent ac0565e3bc
commit 84b5e90dac

View File

@@ -84,6 +84,7 @@ SENSORS: tuple[RensonSensorEntityDescription, ...] = (
raw_format=False,
device_class=SensorDeviceClass.ENUM,
options=["good", "bad", "poor"],
has_entity_name=True,
),
RensonSensorEntityDescription(
key="AIR_QUALITY_FIELD",
@@ -92,6 +93,7 @@ SENSORS: tuple[RensonSensorEntityDescription, ...] = (
raw_format=False,
device_class=SensorDeviceClass.ENUM,
options=["good", "bad", "poor"],
has_entity_name=True,
),
RensonSensorEntityDescription(
key="CO2_FIELD",
@@ -100,6 +102,7 @@ SENSORS: tuple[RensonSensorEntityDescription, ...] = (
state_class=SensorStateClass.MEASUREMENT,
device_class=SensorDeviceClass.CO2,
native_unit_of_measurement=CONCENTRATION_PARTS_PER_MILLION,
has_entity_name=True,
),
RensonSensorEntityDescription(
key="AIR_FIELD",
@@ -108,6 +111,7 @@ SENSORS: tuple[RensonSensorEntityDescription, ...] = (
state_class=SensorStateClass.MEASUREMENT,
raw_format=True,
native_unit_of_measurement=CONCENTRATION_PARTS_PER_MILLION,
has_entity_name=True,
),
RensonSensorEntityDescription(
key="CURRENT_LEVEL_FIELD",
@@ -116,6 +120,7 @@ SENSORS: tuple[RensonSensorEntityDescription, ...] = (
raw_format=False,
device_class=SensorDeviceClass.ENUM,
options=["off", "level1", "level2", "level3", "level4", "breeze", "holiday"],
has_entity_name=True,
),
RensonSensorEntityDescription(
key="CURRENT_AIRFLOW_EXTRACT_FIELD",
@@ -124,6 +129,7 @@ SENSORS: tuple[RensonSensorEntityDescription, ...] = (
raw_format=False,
state_class=SensorStateClass.MEASUREMENT,
native_unit_of_measurement=UnitOfVolumeFlowRate.CUBIC_METERS_PER_HOUR,
has_entity_name=True,
),
RensonSensorEntityDescription(
key="CURRENT_AIRFLOW_INGOING_FIELD",
@@ -132,6 +138,7 @@ SENSORS: tuple[RensonSensorEntityDescription, ...] = (
raw_format=False,
state_class=SensorStateClass.MEASUREMENT,
native_unit_of_measurement=UnitOfVolumeFlowRate.CUBIC_METERS_PER_HOUR,
has_entity_name=True,
),
RensonSensorEntityDescription(
key="OUTDOOR_TEMP_FIELD",
@@ -141,6 +148,7 @@ SENSORS: tuple[RensonSensorEntityDescription, ...] = (
device_class=SensorDeviceClass.TEMPERATURE,
state_class=SensorStateClass.MEASUREMENT,
native_unit_of_measurement=UnitOfTemperature.CELSIUS,
has_entity_name=True,
),
RensonSensorEntityDescription(
key="INDOOR_TEMP_FIELD",
@@ -150,6 +158,7 @@ SENSORS: tuple[RensonSensorEntityDescription, ...] = (
device_class=SensorDeviceClass.TEMPERATURE,
state_class=SensorStateClass.MEASUREMENT,
native_unit_of_measurement=UnitOfTemperature.CELSIUS,
has_entity_name=True,
),
RensonSensorEntityDescription(
key="FILTER_REMAIN_FIELD",
@@ -159,6 +168,7 @@ SENSORS: tuple[RensonSensorEntityDescription, ...] = (
device_class=SensorDeviceClass.DURATION,
state_class=SensorStateClass.MEASUREMENT,
native_unit_of_measurement=UnitOfTime.DAYS,
has_entity_name=True,
),
RensonSensorEntityDescription(
key="HUMIDITY_FIELD",
@@ -167,6 +177,7 @@ SENSORS: tuple[RensonSensorEntityDescription, ...] = (
device_class=SensorDeviceClass.HUMIDITY,
state_class=SensorStateClass.MEASUREMENT,
native_unit_of_measurement=PERCENTAGE,
has_entity_name=True,
),
RensonSensorEntityDescription(
key="MANUAL_LEVEL_FIELD",
@@ -175,6 +186,7 @@ SENSORS: tuple[RensonSensorEntityDescription, ...] = (
raw_format=False,
device_class=SensorDeviceClass.ENUM,
options=["off", "level1", "level2", "level3", "level4", "breeze", "holiday"],
has_entity_name=True,
),
RensonSensorEntityDescription(
key="BREEZE_TEMPERATURE_FIELD",
@@ -184,6 +196,7 @@ SENSORS: tuple[RensonSensorEntityDescription, ...] = (
device_class=SensorDeviceClass.TEMPERATURE,
native_unit_of_measurement=UnitOfTemperature.CELSIUS,
entity_registry_enabled_default=False,
has_entity_name=True,
),
RensonSensorEntityDescription(
key="BREEZE_LEVEL_FIELD",
@@ -193,6 +206,7 @@ SENSORS: tuple[RensonSensorEntityDescription, ...] = (
entity_registry_enabled_default=False,
device_class=SensorDeviceClass.ENUM,
options=["off", "level1", "level2", "level3", "level4", "breeze"],
has_entity_name=True,
),
RensonSensorEntityDescription(
key="DAYTIME_FIELD",
@@ -200,6 +214,7 @@ SENSORS: tuple[RensonSensorEntityDescription, ...] = (
field=DAYTIME_FIELD,
raw_format=False,
entity_registry_enabled_default=False,
has_entity_name=True,
),
RensonSensorEntityDescription(
key="NIGHTTIME_FIELD",
@@ -207,6 +222,7 @@ SENSORS: tuple[RensonSensorEntityDescription, ...] = (
field=NIGHTTIME_FIELD,
raw_format=False,
entity_registry_enabled_default=False,
has_entity_name=True,
),
RensonSensorEntityDescription(
key="DAY_POLLUTION_FIELD",
@@ -216,6 +232,7 @@ SENSORS: tuple[RensonSensorEntityDescription, ...] = (
entity_registry_enabled_default=False,
device_class=SensorDeviceClass.ENUM,
options=["level1", "level2", "level3", "level4"],
has_entity_name=True,
),
RensonSensorEntityDescription(
key="NIGHT_POLLUTION_FIELD",
@@ -225,6 +242,7 @@ SENSORS: tuple[RensonSensorEntityDescription, ...] = (
entity_registry_enabled_default=False,
device_class=SensorDeviceClass.ENUM,
options=["level1", "level2", "level3", "level4"],
has_entity_name=True,
),
RensonSensorEntityDescription(
key="CO2_THRESHOLD_FIELD",
@@ -233,6 +251,7 @@ SENSORS: tuple[RensonSensorEntityDescription, ...] = (
raw_format=False,
native_unit_of_measurement=CONCENTRATION_PARTS_PER_MILLION,
entity_registry_enabled_default=False,
has_entity_name=True,
),
RensonSensorEntityDescription(
key="CO2_HYSTERESIS_FIELD",
@@ -241,6 +260,7 @@ SENSORS: tuple[RensonSensorEntityDescription, ...] = (
raw_format=False,
native_unit_of_measurement=CONCENTRATION_PARTS_PER_MILLION,
entity_registry_enabled_default=False,
has_entity_name=True,
),
RensonSensorEntityDescription(
key="BYPASS_TEMPERATURE_FIELD",
@@ -250,6 +270,7 @@ SENSORS: tuple[RensonSensorEntityDescription, ...] = (
device_class=SensorDeviceClass.TEMPERATURE,
state_class=SensorStateClass.MEASUREMENT,
native_unit_of_measurement=UnitOfTemperature.CELSIUS,
has_entity_name=True,
),
RensonSensorEntityDescription(
key="BYPASS_LEVEL_FIELD",
@@ -259,6 +280,7 @@ SENSORS: tuple[RensonSensorEntityDescription, ...] = (
device_class=SensorDeviceClass.POWER_FACTOR,
state_class=SensorStateClass.MEASUREMENT,
native_unit_of_measurement=PERCENTAGE,
has_entity_name=True,
),
)