tijsverkoyen / HomeAssistant-FusionSolar

Integrate FusionSolar into your Home Assistant.
MIT License
133 stars 25 forks source link

Added float type cast to fix OpenAPI returned string type. #134

Closed AndersHoglund closed 5 months ago

AndersHoglund commented 5 months ago

Quick-Fix for issue #132. Inconsistent data types from Kiosk and OpenAPI, float vs string, while the common code assumed float only. A float type cast will (probably) fix this. Needs to be verified on a OpenAPI installation, only tested by me on Kiosk.

A re-factoring to a more consistent use of data types is recommended as a long term proper correction. And in that case perhaps also take care of the midnight glitches in "yearEnergy" and "monthEnergy" data sets.