diff --git a/connectlife/appliance.py b/connectlife/appliance.py index 629541b..a1e8272 100644 --- a/connectlife/appliance.py +++ b/connectlife/appliance.py @@ -37,7 +37,7 @@ class DeviceType(StrEnum): } -RE_DATETIME = re.compile(r"^(\d{4,5})/(\d{2})/(\d{2})T(\d{2}):(\d{2}):(\d{2})$") +RE_DATETIME = re.compile(r"^(\d{4,5})/(\d{1,2})/(\d{1,2})T(\d{1,2}):(\d{1,2}):(\d{1,2})$") MAX_DATETIME = dt.datetime(dt.MAXYEAR, 12, 31, 23, 59, 59, tzinfo=dt.UTC)