diff --git a/homeassistant/helpers/event.py b/homeassistant/helpers/event.py index 107567c98ce..613b6fb3227 100644 --- a/homeassistant/helpers/event.py +++ b/homeassistant/helpers/event.py @@ -806,7 +806,7 @@ def async_track_template( track_template = threaded_listener_factory(async_track_template) -class _TrackTemplateResultInfo: +class TrackTemplateResultInfo: """Handle removal / refresh of tracker.""" def __init__( @@ -1145,7 +1145,7 @@ def async_track_template_result( raise_on_template_error: bool = False, strict: bool = False, has_super_template: bool = False, -) -> _TrackTemplateResultInfo: +) -> TrackTemplateResultInfo: """Add a listener that fires when the result of a template changes. The action will fire with the initial result from the template, and @@ -1184,9 +1184,7 @@ def async_track_template_result( Info object used to unregister the listener, and refresh the template. """ - tracker = _TrackTemplateResultInfo( - hass, track_templates, action, has_super_template - ) + tracker = TrackTemplateResultInfo(hass, track_templates, action, has_super_template) tracker.async_setup(raise_on_template_error, strict=strict) return tracker