mirror of
https://github.com/esphome/esphome.git
synced 2024-11-27 09:18:00 +01:00
Update sensor.py - device_class added
This commit is contained in:
parent
16b09850f6
commit
6592d83163
1 changed files with 2 additions and 1 deletions
|
@ -24,7 +24,8 @@ CONFIG_SCHEMA = (
|
|||
icon=ICON_ARROW_EXPAND_VERTICAL,
|
||||
accuracy_decimals=2,
|
||||
state_class=STATE_CLASS_MEASUREMENT,
|
||||
)
|
||||
device_class=DEVICE_CLASS_DISTANCE,
|
||||
)
|
||||
.extend(cv.polling_component_schema("60s"))
|
||||
.extend(uart.UART_DEVICE_SCHEMA)
|
||||
)
|
||||
|
|
Loading…
Reference in a new issue