Fix lux discovery always being sent (#99)
This commit is contained in:
parent
b611832f3c
commit
7ad17a7322
|
@ -427,7 +427,7 @@ bool sendDiscoveryHumidity()
|
||||||
|
|
||||||
bool sendDiscoveryLux()
|
bool sendDiscoveryLux()
|
||||||
{
|
{
|
||||||
if (!BH1750_I2c) return true;
|
if (BH1750_I2c.isEmpty()) return true;
|
||||||
|
|
||||||
DynamicJsonDocument doc(1200);
|
DynamicJsonDocument doc(1200);
|
||||||
commonDiscovery(&doc);
|
commonDiscovery(&doc);
|
||||||
|
|
Loading…
Reference in New Issue