mirror of
https://github.com/esphome/esphome.git
synced 2024-11-06 09:25:37 +01:00
f95be6a0df
* Add constants for sensor device_class * Add device_class attribute to sensor component * Add device_class attribute to sensor class * Add device_class to mhz19 temperature sensor * Add device_class to sensor in api component * Add test for device_class of sensor * Rename DEVICE_CLASS_NONE to DEVICE_CLASS_EMPTY for consistency * Make optional attributes of sensor component truly optional
13 lines
188 B
YAML
13 lines
188 B
YAML
esphome:
|
|
name: test
|
|
platform: ESP8266
|
|
board: d1_mini_lite
|
|
|
|
sensor:
|
|
- platform: adc
|
|
pin: A0
|
|
id: s_1
|
|
name: "test s1"
|
|
update_interval: 60s
|
|
device_class: "voltage"
|