Skip to content

Commit

Permalink
bug fix to for coordinator not updating
Browse files Browse the repository at this point in the history
  • Loading branch information
liangleslie committed Aug 5, 2024
1 parent 037e2ae commit a56488c
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions custom_components/nea_sg_weather/nea.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""The NEA Singapore Weather API wrapper."""

from __future__ import annotations
from ast import Str
import math
Expand Down Expand Up @@ -155,8 +156,8 @@ def process_data(self):
self._resp["items"][0]["forecasts"][i]["area"]: {
"forecast": self._resp["items"][0]["forecasts"][i]["forecast"],
"location": {
"latitude": self.metadata[i]["label_location"]["latitude"],
"longitude": self.metadata[i]["label_location"]["longitude"],
"latitude": float(self.metadata[i]["label_location"]["latitude"]),
"longitude": float(self.metadata[i]["label_location"]["longitude"]),
},
}
for i in range(len(self._resp["items"][0]["forecasts"]))
Expand Down

0 comments on commit a56488c

Please sign in to comment.