marq24 / ha-senec-v3

SENEC.Home V2.x/V3/V4 Integration for Home Assistant that will work with the recent changes introduced by SENEC (supporting https) - successfully tested with latest MCU Version: 0827 (Feb 2024).
Apache License 2.0
51 stars 4 forks source link

Peak Shaving | Sensors return "unknown" instead of current data #51

Closed io-debug closed 9 months ago

io-debug commented 9 months ago

Description of the issue The Sensors that show data for

return "unknown" instad of the current data.

Result of Analysis The root of the issue can be found in the file /custom_components/senec/pysenec_ha/init.py Starting with line 2437 the respective properties check "if hasattr(self, "_peakShaving_entities")". The correct if-statement is: "if hasattr(self, "_peak_shaving_entities")".

I'll provide an PR to solve this issue.

io-debug commented 9 months ago

Fixed with the latest release.