mirror of
https://github.com/home-assistant/core.git
synced 2025-08-01 03:35:09 +02:00
Fix implicit-return in season tests (#122784)
This commit is contained in:
@@ -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)
|
||||
|
Reference in New Issue
Block a user