Seeed-Solution / SenseCAP_Indicator_ESP32

SenseCAP Indicator SDK.
https://wiki.seeedstudio.com/SenseCAP_Indicator_How_To_Flash_The_Default_Firmware/#ESP-IDF
Apache License 2.0
32 stars 22 forks source link

Fix MQTT sensor update in HomeAssistant example #56

Closed cmuster closed 2 days ago

cmuster commented 2 days ago

This PR fixes a bug that prevents MQTT sensor entities being updated when a MQTT message with their topic is received. Previously this only worked for the first sensor, as the array entries were not correctly dereferenced for indices > 0.