Skip to content

Commit

Permalink
Ignore all combined-forecast errors
Browse files Browse the repository at this point in the history
  • Loading branch information
tronikos committed Aug 20, 2023
1 parent bb98ccb commit 7ce9d5c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[project]
name = "opower"
version = "0.0.30"
version = "0.0.31"
license = {text = "Apache-2.0"}
authors = [
{ name="tronikos", email="[email protected]" },
Expand Down
6 changes: 3 additions & 3 deletions src/opower/opower.py
Original file line number Diff line number Diff line change
Expand Up @@ -254,9 +254,9 @@ async def async_get_forecast(self) -> list[Forecast]:
if DEBUG_LOG_RESPONSE:
_LOGGER.debug("Fetched: %s", json.dumps(result, indent=2))
except ClientResponseError as err:
# For some customers utilities don't provide forecast and return 404
if err.status == 404:
continue
# For some customers utilities don't provide forecast
_LOGGER.debug("Ignoring combined-forecast error: %s", err.status)
continue
for forecast in result["accountForecasts"]:
forecasts.append(
Forecast(
Expand Down

0 comments on commit 7ce9d5c

Please sign in to comment.