From f5c90f5b289a8a2859ea38181a396ec7e30aac66 Mon Sep 17 00:00:00 2001 From: Tobias Sauerwein Date: Fri, 15 Dec 2023 11:27:47 +0100 Subject: [PATCH] Clean up (#479) --- src/pyatmo/helpers.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pyatmo/helpers.py b/src/pyatmo/helpers.py index ed422f75..1b538cdb 100644 --- a/src/pyatmo/helpers.py +++ b/src/pyatmo/helpers.py @@ -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(" ", "")