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

This commit is contained in:
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

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