diff --git a/src/opower/opower.py b/src/opower/opower.py index 85c60c4..7e38efa 100644 --- a/src/opower/opower.py +++ b/src/opower/opower.py @@ -223,8 +223,8 @@ async def async_get_forecast(self) -> list[Forecast]: cost_to_date=float(forecast["costToDate"]), forecasted_usage=float(forecast.get("forecastedUsage", 0)), forecasted_cost=float(forecast.get("forecastedCost", 0)), - typical_usage=float(forecast["typicalUsage"]), - typical_cost=float(forecast["typicalCost"]), + typical_usage=float(forecast.get("typicalUsage", 0)), + typical_cost=float(forecast.get("typicalCost", 0)), ) ) return forecasts