Fix docstring in helpers.template_entity (#86227)

This commit is contained in:
Aarni Koskela 2023-01-20 04:24:44 +02:00 committed by GitHub
parent f00aadfc25
commit 656632f504
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -283,6 +283,8 @@ class TemplateEntity(Entity):
Called to store the template result rather than storing it
the supplied attribute. Passed the result of the validator, or None
if the template or validator resulted in an error.
none_on_template_error
If True, the attribute will be set to None if the template errors.
"""
assert self.hass is not None, "hass cannot be None"