Skip to content

Commit

Permalink
Update sensor.py (#256)
Browse files Browse the repository at this point in the history
Occasional startup problem because 'feedin' not setup correctly
  • Loading branch information
FozzieUK1 authored Jun 8, 2024
1 parent e7c45de commit 74277ef
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion custom_components/foxess/sensor.py
Original file line number Diff line number Diff line change
Expand Up @@ -1237,7 +1237,7 @@ def native_value(self) -> float | None:
charge = float(self.coordinator.data["raw"]["batChargePower"])

if "feedinPower" not in self.coordinator.data["raw"]:
feedin = 0
feedIn = 0
else:
feedIn = float(self.coordinator.data["raw"]["feedinPower"])

Expand Down

0 comments on commit 74277ef

Please sign in to comment.