Skip to content

Commit

Permalink
Change typing
Browse files Browse the repository at this point in the history
  • Loading branch information
Hellowlol committed May 4, 2022
1 parent 20a4621 commit 6617593
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions custom_components/nordpool/events.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,10 @@ def stock(d):
@bind_hass
def async_track_utc_time_change(
hass: HomeAssistant,
action: Callable[[datetime], Awaitable[None] | None],
hour: Any | None = None,
minute: Any | None = None,
second: Any | None = None,
action: None,
hour: Optional[Any] = None,
minute: Optional[Any] = None,
second: Optional[Any] = None,
tz: Optional[Any] = None,
) -> CALLBACK_TYPE:
"""Add a listener that will fire if time matches a pattern."""
Expand Down Expand Up @@ -92,7 +92,8 @@ def unsub_pattern_time_change_listener() -> None:
@bind_hass
def async_track_time_change_in_tz(
hass: HomeAssistant,
action: Callable[[datetime], Awaitable[None] | None],
action: None,
# action: Callable[[datetime], Awaitable[None] | None],
hour: Optional[Any] = None,
minute: Optional[Any] = None,
second: Optional[Any] = None,
Expand Down

0 comments on commit 6617593

Please sign in to comment.