Skip to content

Commit acbbbd2

Browse files
authored
Remove stale comment from trigger helper (home-assistant#177909)
1 parent a61aae0 commit acbbbd2

1 file changed

Lines changed: 0 additions & 6 deletions

File tree

homeassistant/helpers/trigger.py

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -623,8 +623,6 @@ def report_not_triggered(reason: str, /, **data: Any) -> None:
623623
if not self.is_valid_state(to_state, report_not_triggered):
624624
return
625625

626-
# The trigger should never fire if the origin state is excluded
627-
# or the transition is not valid.
628626
if (
629627
from_state.state in self._excluded_from_states
630628
or not self.is_valid_transition(from_state, to_state)
@@ -657,9 +655,6 @@ def report_not_triggered(reason: str, /, **data: Any) -> None:
657655
@callback
658656
def call_action() -> None:
659657
"""Call action with right context."""
660-
# After a `for` delay, keep the original triggering event payload.
661-
# `async_track_same_state` only verifies the state remained valid
662-
# for the configured duration before firing the action.
663658
run_action(
664659
{
665660
ATTR_ENTITY_ID: entity_id,
@@ -672,7 +667,6 @@ def call_action() -> None:
672667
)
673668

674669
if not self._duration:
675-
# Call action immediately if duration is not specified or 0
676670
call_action()
677671
return
678672

0 commit comments

Comments
 (0)