esphome/esphome/components/mhz19
marecabo f95be6a0df
Device class attribute for sensor component (#1525)
* 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
2021-02-15 12:49:02 -03:00
..
__init__.py 🏗 Merge C++ into python codebase (#504) 2019-04-17 12:06:00 +02:00
mhz19.cpp Add PZEM004T/PZEMAC/PZEMDC Support (#587) 2019-10-20 19:24:20 +02:00
mhz19.h lint 2020-05-24 23:27:28 -03:00
sensor.py Device class attribute for sensor component (#1525) 2021-02-15 12:49:02 -03:00