Fix duplicate code from merge conflict (#143880)

fix conflict
This commit is contained in:
Petro31 2025-04-29 10:09:08 -04:00 committed by GitHub
parent bd870f0537
commit 9a25561017
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -65,9 +65,7 @@ class TriggerEntity( # pylint: disable=hass-enforce-class-module
"""Render configured variables.""" """Render configured variables."""
if self.coordinator.data is None: if self.coordinator.data is None:
return {} return {}
if self.coordinator.data is None: return self.coordinator.data["run_variables"] or {}
return {}
return self.coordinator.data["run_variables"] or {} or {}
def _render_templates(self, variables: dict[str, Any]) -> None: def _render_templates(self, variables: dict[str, Any]) -> None:
"""Render templates.""" """Render templates."""