We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 62f8888 commit 40c546dCopy full SHA for 40c546d
custom_components/foxess_api/fox_ess_cloud_api.py
@@ -2,7 +2,6 @@
2
import json
3
import time
4
from datetime import datetime
5
-
6
from homeassistant.components.rest.data import RestData
7
8
from .const import BASE_URL, LOGGER, API_VERSION
@@ -180,7 +179,8 @@ async def update_report_data(self):
180
179
variable = dataset["variable"]
181
value_sum = 0.0
182
for value in dataset["values"]:
183
- value_sum += float(value)
+ if value is not None:
+ value_sum += float(value)
184
self.allData["report"][variable] = round(value_sum, 3)
185
except KeyError:
186
LOGGER.warning("Could not parse dataset data. If this error persists, check API for changes. "
0 commit comments