tschaban / AFE-Firmware

Firmware for ESP based devices for home automation
https://afe.smartnydom.pl
MIT License
28 stars 39 forks source link

Fix: HA reports errors with not correct configuration for DHxx sensor #879

Closed tschaban closed 7 months ago

tschaban commented 1 year ago

Sensor sensor.dht_1_poziom_komfortu has device class None, state class None and unit thus indicating it has a numeric value; however, it has the non-numeric value: OK (<class 'str'>); Please update your configuration if your entity is manually configured, otherwise create a bug report at https://github.com/home-assistant/core/issues?q=is%3Aopen+is%3Aissue+label%3A%22integration%3A+mqtt%22 Sensor sensor.dht_1_percepcja has device class None, state class None and unit thus indicating it has a numeric value; however, it has the non-numeric value: Bardzo komfortowo (<class 'str'>); Please update your configuration if your entity is manually configured, otherwise create a bug report at https://github.com/home-assistant/core/issues?q=is%3Aopen+is%3Aissue+label%3A%22integration%3A+mqtt%22

tschaban commented 7 months ago

changed device class to enum