Correct initial update of async_track_template_result (#59705)

This commit is contained in:
Erik Montnemery 2021-11-15 13:00:46 +01:00 committed by GitHub
parent 5370dd8122
commit acf58111c6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 79 additions and 11 deletions

View file

@ -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):