Fix regression in template flag introduced by #139645 (#139742)

pull/137969/merge
Erik Montnemery 2025-03-04 11:33:27 +01:00 committed by GitHub
parent 973fee9fe1
commit 4f36bbdfe6
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -1023,7 +1023,7 @@ class LightTemplate(TemplateEntity, LightEntity):
if render in (None, "None", ""):
self._supports_transition = False
return
self._attr_supported_features &= LightEntityFeature.EFFECT
self._attr_supported_features &= ~LightEntityFeature.TRANSITION
self._supports_transition = bool(render)
if self._supports_transition:
self._attr_supported_features |= LightEntityFeature.TRANSITION