Rename sensor_class to device_class

This commit is contained in:
Adam Mills 2017-02-10 19:10:24 -05:00
parent 4b6358c12b
commit b83f3855ee
No known key found for this signature in database
GPG key ID: BF90A5D750629906
8 changed files with 19 additions and 19 deletions

View file

@ -30,7 +30,7 @@ Configuration variables:
- **sensors** array (*Required*): List of your sensors.
- **friendly_name** (*Optional*): Name to use in the Frontend.
- **sensor_class** (*Optional*): The [type/class](/components/binary_sensor/) of the sensor to set the icon in the frontend.
- **device_class** (*Optional*): The [type/class](/components/binary_sensor/) of the sensor to set the icon in the frontend.
- **entity_id** (*Required*): The entity that this sensor tracks.
- **attribute** (*Optional*): The attribute of the entity that this sensor tracks. If no attribute is specified then the sensor will track the state.
- **invert** (*Optional*): Invert the result (so `true` means descending rather than ascending)
@ -50,7 +50,7 @@ binary_sensor:
temperature_up:
friendly_name: 'Temp increasing'
entity_id: sensor.skylight_temperature
sensor_class: heat
device_class: heat
```
And this one indicates `true` if the temperature is falling:
@ -62,6 +62,6 @@ binary_sensor:
temperature_down:
friendly_name: 'Temp decreasing'
entity_id: sensor.skylight_temperature
sensor_class: cold
device_class: cold
invert: Yes
```