From acbbbd2aa6cd8e8d690cd87fafb5631b7db4b003 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ab=C3=ADlio=20Costa?= Date: Sat, 1 Aug 2026 01:41:23 +0100 Subject: [PATCH] Remove stale comment from trigger helper (#177909) --- homeassistant/helpers/trigger.py | 6 ------ 1 file changed, 6 deletions(-) diff --git a/homeassistant/helpers/trigger.py b/homeassistant/helpers/trigger.py index f4549792bb9b..9451757998c6 100644 --- a/homeassistant/helpers/trigger.py +++ b/homeassistant/helpers/trigger.py @@ -623,8 +623,6 @@ class EntityTriggerBase(Trigger): if not self.is_valid_state(to_state, report_not_triggered): return - # The trigger should never fire if the origin state is excluded - # or the transition is not valid. if ( from_state.state in self._excluded_from_states or not self.is_valid_transition(from_state, to_state) @@ -657,9 +655,6 @@ class EntityTriggerBase(Trigger): @callback def call_action() -> None: """Call action with right context.""" - # After a `for` delay, keep the original triggering event payload. - # `async_track_same_state` only verifies the state remained valid - # for the configured duration before firing the action. run_action( { ATTR_ENTITY_ID: entity_id, @@ -672,7 +667,6 @@ class EntityTriggerBase(Trigger): ) if not self._duration: - # Call action immediately if duration is not specified or 0 call_action() return