Update sensor.py - device_class added

This commit is contained in:
Masterz69 2024-04-05 20:33:26 +03:00 committed by GitHub
parent 16b09850f6
commit 6592d83163
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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)
)