mirror of
https://github.com/home-assistant/core.git
synced 2025-07-12 15:57:06 +00:00
Fix scene loading issue (#130627)
This commit is contained in:
parent
9a07f58890
commit
cd79a606d7
@ -130,10 +130,15 @@ class HueSceneEntity(HueSceneEntityBase):
|
|||||||
@property
|
@property
|
||||||
def is_dynamic(self) -> bool:
|
def is_dynamic(self) -> bool:
|
||||||
"""Return if this scene has a dynamic color palette."""
|
"""Return if this scene has a dynamic color palette."""
|
||||||
if self.resource.palette.color and len(self.resource.palette.color) > 1:
|
if (
|
||||||
|
self.resource.palette
|
||||||
|
and self.resource.palette.color
|
||||||
|
and len(self.resource.palette.color) > 1
|
||||||
|
):
|
||||||
return True
|
return True
|
||||||
if (
|
if (
|
||||||
self.resource.palette.color_temperature
|
self.resource.palette
|
||||||
|
and self.resource.palette.color_temperature
|
||||||
and len(self.resource.palette.color_temperature) > 1
|
and len(self.resource.palette.color_temperature) > 1
|
||||||
):
|
):
|
||||||
return True
|
return True
|
||||||
|
Loading…
x
Reference in New Issue
Block a user