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
39 stars 30 forks source link

Fix MQTT sensor update in HomeAssistant example #56

Closed cmuster closed 5 months ago

cmuster commented 5 months 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.