mirror of
https://github.com/home-assistant/core.git
synced 2025-07-23 21:27:38 +00:00
Add missing temperature sensor for Shelly Motion2 (#67458)
This commit is contained in:
parent
7889aace5f
commit
de2ddfe7b7
@ -215,6 +215,15 @@ SENSORS: Final = {
|
|||||||
icon="mdi:gauge",
|
icon="mdi:gauge",
|
||||||
state_class=SensorStateClass.MEASUREMENT,
|
state_class=SensorStateClass.MEASUREMENT,
|
||||||
),
|
),
|
||||||
|
("sensor", "temp"): BlockSensorDescription(
|
||||||
|
key="sensor|temp",
|
||||||
|
name="Temperature",
|
||||||
|
unit_fn=temperature_unit,
|
||||||
|
value=lambda value: round(value, 1),
|
||||||
|
device_class=SensorDeviceClass.TEMPERATURE,
|
||||||
|
state_class=SensorStateClass.MEASUREMENT,
|
||||||
|
entity_category=EntityCategory.DIAGNOSTIC,
|
||||||
|
),
|
||||||
("sensor", "extTemp"): BlockSensorDescription(
|
("sensor", "extTemp"): BlockSensorDescription(
|
||||||
key="sensor|extTemp",
|
key="sensor|extTemp",
|
||||||
name="Temperature",
|
name="Temperature",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user