mirror of
https://github.com/esphome/esphome.git
synced 2025-09-02 03:12:20 +01:00
Add support for Sensor state class (#1835)
Co-authored-by: Jesse Hills <3060199+jesserockz@users.noreply.github.com>
This commit is contained in:
@@ -261,7 +261,6 @@ mcp23s17:
|
||||
cs_pin: GPIO12
|
||||
deviceaddress: 1
|
||||
|
||||
|
||||
sensor:
|
||||
- platform: ble_client
|
||||
ble_client_id: ble_foo
|
||||
@@ -794,6 +793,7 @@ sensor:
|
||||
update_interval: 15s
|
||||
- platform: template
|
||||
name: 'Template Sensor'
|
||||
state_class: measurement
|
||||
id: template_sensor
|
||||
lambda: |-
|
||||
if (id(ultrasonic_sensor1).state > 1) {
|
||||
|
Reference in New Issue
Block a user