From 7c436f2677af31eeb63b9942feb1e45cb18db91f Mon Sep 17 00:00:00 2001 From: Anders Nord Date: Sat, 4 May 2024 19:23:01 +0200 Subject: [PATCH] Clean up Metobs Data init function --- src/smhi/metobs.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/smhi/metobs.py b/src/smhi/metobs.py index 42a7548..258f3a5 100644 --- a/src/smhi/metobs.py +++ b/src/smhi/metobs.py @@ -306,7 +306,7 @@ class Data(BaseMetobs): def __init__( self, periods_in_station: Periods, - period: str = "not-set", + period: Optional[str] = None, data_type: str = "json", ) -> None: """Get data from period. @@ -323,7 +323,7 @@ def __init__( """ super().__init__() - if period == "not-set": + if period == None: ordering = { "latest-hour": 0, "latest-day": 1,