v0.23.2 — OTA install + energy-sensor fixes
Fixed
- Firmware "Install" (OTA from HA) no longer shows a bogus error. The gateway reboots into the new image right after accepting the upload, so its HTTP response is often empty / the connection drops — the client tried to parse that as JSON and raised "unexpected character: line 1 column 1 (char 0)" on a flash that had actually succeeded. A 2xx is now treated as success without parsing the body.
- Energy sensors no longer spam the log. "Green energy (session)" / "Grid energy (session)" were
state_class: measurement, invalid for theenergydevice class — nowtotal_increasing. "Last charge burst" is a per-burst snapshot, so it now carries nostate_class.
Added
- Test guard validating every sensor's
device_class/state_classcombo against HA's rules, so this class of bug can't ship again.
Update: HACS → redownload the integration → restart Home Assistant.