mirror of
https://github.com/home-assistant/core.git
synced 2025-07-30 02:38:10 +02:00
Add type ignore error codes [last ones] (#66816)
This commit is contained in:
@ -116,7 +116,7 @@ def get_astral_event_date(
|
||||
kwargs["observer_elevation"] = elevation
|
||||
|
||||
try:
|
||||
return getattr(location, event)(date, **kwargs) # type: ignore
|
||||
return getattr(location, event)(date, **kwargs) # type: ignore[no-any-return]
|
||||
except ValueError:
|
||||
# Event never occurs for specified date.
|
||||
return None
|
||||
|
Reference in New Issue
Block a user