diff --git a/homeassistant/util/dt.py b/homeassistant/util/dt.py index 09a7923aaa..2dfc9a6f62 100644 --- a/homeassistant/util/dt.py +++ b/homeassistant/util/dt.py @@ -24,7 +24,7 @@ EPOCHORDINAL = dt.datetime(1970, 1, 1).toordinal() # Copyright (c) Django Software Foundation and individual contributors. # All rights reserved. -# https://github.com/django/django/blob/master/LICENSE +# https://github.com/django/django/blob/main/LICENSE DATETIME_RE = re.compile( r"(?P\d{4})-(?P\d{1,2})-(?P\d{1,2})" r"[T ](?P\d{1,2}):(?P\d{1,2})" @@ -34,7 +34,7 @@ DATETIME_RE = re.compile( # Copyright (c) Django Software Foundation and individual contributors. # All rights reserved. -# https://github.com/django/django/blob/master/LICENSE +# https://github.com/django/django/blob/main/LICENSE STANDARD_DURATION_RE = re.compile( r"^" r"(?:(?P-?\d+) (days?, )?)?" @@ -48,7 +48,7 @@ STANDARD_DURATION_RE = re.compile( # Copyright (c) Django Software Foundation and individual contributors. # All rights reserved. -# https://github.com/django/django/blob/master/LICENSE +# https://github.com/django/django/blob/main/LICENSE ISO8601_DURATION_RE = re.compile( r"^(?P[-+]?)" r"P" @@ -63,7 +63,7 @@ ISO8601_DURATION_RE = re.compile( # Copyright (c) Django Software Foundation and individual contributors. # All rights reserved. -# https://github.com/django/django/blob/master/LICENSE +# https://github.com/django/django/blob/main/LICENSE POSTGRES_INTERVAL_RE = re.compile( r"^" r"(?:(?P-?\d+) (days? ?))?" @@ -178,7 +178,7 @@ def start_of_local_day(dt_or_d: dt.date | dt.datetime | None = None) -> dt.datet # Copyright (c) Django Software Foundation and individual contributors. # All rights reserved. -# https://github.com/django/django/blob/master/LICENSE +# https://github.com/django/django/blob/main/LICENSE def parse_datetime(dt_str: str) -> dt.datetime | None: """Parse a string and return a datetime.datetime.