mirror of
https://github.com/home-assistant/core.git
synced 2025-07-25 06:07:17 +00:00
Add entity translations to honeywell (#95440)
This commit is contained in:
parent
c1953b0ae4
commit
ff015310fd
@ -48,7 +48,7 @@ class HoneywellSensorEntityDescription(
|
||||
SENSOR_TYPES: tuple[HoneywellSensorEntityDescription, ...] = (
|
||||
HoneywellSensorEntityDescription(
|
||||
key=TEMPERATURE_STATUS_KEY,
|
||||
name="Outdoor temperature",
|
||||
translation_key="outdoor_temperature",
|
||||
device_class=SensorDeviceClass.TEMPERATURE,
|
||||
state_class=SensorStateClass.MEASUREMENT,
|
||||
value_fn=lambda device: device.outdoor_temperature,
|
||||
@ -56,7 +56,7 @@ SENSOR_TYPES: tuple[HoneywellSensorEntityDescription, ...] = (
|
||||
),
|
||||
HoneywellSensorEntityDescription(
|
||||
key=HUMIDITY_STATUS_KEY,
|
||||
name="Outdoor humidity",
|
||||
translation_key="outdoor_humidity",
|
||||
device_class=SensorDeviceClass.HUMIDITY,
|
||||
state_class=SensorStateClass.MEASUREMENT,
|
||||
value_fn=lambda device: device.outdoor_humidity,
|
||||
|
@ -31,5 +31,15 @@
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"entity": {
|
||||
"sensor": {
|
||||
"outdoor_temperature": {
|
||||
"name": "Outdoor temperature"
|
||||
},
|
||||
"outdoor_humidity": {
|
||||
"name": "Outdoor humidity"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user