using device_class instead of sensor_class (#15415)

This commit is contained in:
eddyliao 2020-10-26 04:23:06 -04:00 committed by GitHub
parent b1037b9982
commit 20bd0cc070
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -179,7 +179,7 @@ You can setup the binary motion sensor with the following in your `configuration
binary_sensor:
- platform: rest
name: Kitchen Motion
sensor_class: motion
device_class: motion
resource: http://IP_ADDRESS:PORT/sensors.json?sense=motion_active
value_template: '{{ value_json.motion_active.data[0][1][0] | round(0) }}'
```