Correct initial update of async_track_template_result (#59705)
This commit is contained in:
parent
5370dd8122
commit
acf58111c6
4 changed files with 79 additions and 11 deletions
|
@ -923,8 +923,8 @@ class _TrackTemplateResultInfo:
|
|||
|
||||
last_result = self._last_result.get(template)
|
||||
|
||||
# Check to see if the result has changed
|
||||
if result == last_result:
|
||||
# Check to see if the result has changed or is new
|
||||
if result == last_result and template in self._last_result:
|
||||
return True
|
||||
|
||||
if isinstance(result, TemplateError) and isinstance(last_result, TemplateError):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue