Skip to content

Commit

Permalink
added one more check before setting light sensor value to HA
Browse files Browse the repository at this point in the history
  • Loading branch information
Foroxon committed Apr 1, 2024
1 parent 8a3a456 commit 5df7446
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/firmware/firmware.ino
Original file line number Diff line number Diff line change
Expand Up @@ -4654,7 +4654,7 @@ void updateHaPressureSensors() {

void updateHaLightSensors() {
#if HA_ENABLED
if (enableHA) {
if (enableHA && bh1750Inited) {
haLightLevel->setValue(lightInLuxes);
}
#endif
Expand Down

0 comments on commit 5df7446

Please sign in to comment.