mirror of
https://github.com/home-assistant/core.git
synced 2025-07-21 12:17:07 +00:00
convert_until isn't returning anything (#38157)
This commit is contained in:
parent
5f6bd22f18
commit
19e06c613b
@ -107,7 +107,7 @@ def _dt_aware_to_naive(dt_aware: dt) -> dt:
|
||||
return dt_naive.replace(microsecond=0)
|
||||
|
||||
|
||||
def convert_until(status_dict: dict, until_key: str) -> str:
|
||||
def convert_until(status_dict: dict, until_key: str) -> None:
|
||||
"""Reformat a dt str from "%Y-%m-%dT%H:%M:%SZ" as local/aware/isoformat."""
|
||||
if until_key in status_dict: # only present for certain modes
|
||||
dt_utc_naive = dt_util.parse_datetime(status_dict[until_key])
|
||||
|
Loading…
x
Reference in New Issue
Block a user