mirror of
https://github.com/home-assistant/core.git
synced 2025-07-22 20:57:21 +00:00
Fix implicit-return in season tests (#122784)
This commit is contained in:
parent
ad50136dbd
commit
4ac85829c8
@ -70,6 +70,7 @@ def idfn(val):
|
||||
"""Provide IDs for pytest parametrize."""
|
||||
if isinstance(val, (datetime)):
|
||||
return val.strftime("%Y%m%d")
|
||||
return None
|
||||
|
||||
|
||||
@pytest.mark.parametrize(("type", "day", "expected"), NORTHERN_PARAMETERS, ids=idfn)
|
||||
|
Loading…
x
Reference in New Issue
Block a user