Fixed empty timestamp in Home-Assistant JSON (#1105)

* Nullable timestamps for HA JSON

* Nullable timestamps for MQTT JSON
This commit is contained in:
Gunnar Skjold
2025-12-30 10:05:39 +01:00
committed by GitHub
parent a0d7fd0d95
commit ca4cef5233
9 changed files with 87 additions and 93 deletions

View File

@@ -79,6 +79,7 @@ private:
void publishPriceSensors(PriceService* ps);
void publishSystemSensors();
void publishThresholdSensors();
void toJsonIsoTimestamp(time_t t, char* buf, size_t buflen);
String boardTypeToString(uint8_t b) {
switch(b) {