Skip to content

Commit

Permalink
Add entity translations to honeywell (#95440)
Browse files Browse the repository at this point in the history
  • Loading branch information
joostlek authored Jun 28, 2023
1 parent c1953b0 commit ff01531
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 2 deletions.
4 changes: 2 additions & 2 deletions homeassistant/components/honeywell/sensor.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,15 +48,15 @@ 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,
unit_fn=_get_temperature_sensor_unit,
),
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,
Expand Down
10 changes: 10 additions & 0 deletions homeassistant/components/honeywell/strings.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,5 +31,15 @@
}
}
}
},
"entity": {
"sensor": {
"outdoor_temperature": {
"name": "Outdoor temperature"
},
"outdoor_humidity": {
"name": "Outdoor humidity"
}
}
}
}

0 comments on commit ff01531

Please sign in to comment.