Skip to content

Commit

Permalink
Clean up (#479)
Browse files Browse the repository at this point in the history
  • Loading branch information
cgtobi authored Dec 15, 2023
1 parent 1342d20 commit f5c90f5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/pyatmo/helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ def fix_id(raw_data: RawData) -> dict[str, Any]:
for station in raw_data:
if not isinstance(station, dict):
continue
if "_id" not in station:
if station.get("_id") is None:
continue

station["_id"] = cast(dict, station)["_id"].replace(" ", "")
Expand Down

0 comments on commit f5c90f5

Please sign in to comment.