Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions homeassistant/components/lyric/sensor.py
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,14 @@ class LyricSensorAccessoryEntityDescription(SensorEntityDescription):
value_fn=lambda room, _: room.room_avg_humidity,
suitable_fn=lambda _, accessory: accessory.type == "IndoorAirSensor",
),
LyricSensorAccessoryEntityDescription(
key="room_average_temperature",
translation_key="room_average_temperature",
device_class=SensorDeviceClass.TEMPERATURE,
state_class=SensorStateClass.MEASUREMENT,
value_fn=lambda room, _: room.room_avg_temp,
suitable_fn=lambda _, accessory: accessory.type == "IndoorAirSensor",
),
]


Expand Down
3 changes: 3 additions & 0 deletions homeassistant/components/lyric/strings.json
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,9 @@
"outdoor_temperature": {
"name": "Outdoor temperature"
},
"room_average_temperature": {
"name": "Room average temperature"
},
Comment on lines +64 to +66

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Documentation added/updated for www.home-assistant.io
Link to documentation pull request: home-assistant/home-assistant.io#46986

"room_humidity": {
"name": "Room humidity"
},
Expand Down
Loading