@@ -704,22 +704,7 @@ def __update_allowed(
704704
705705 # check if data changed
706706 # when not using udp no need to send same light command again
707- if (
708- prev_data .get (const .HUE_ATTR_BRI , 0 )
709- == light_data .get (const .HUE_ATTR_BRI , 0 )
710- and prev_data .get (const .HUE_ATTR_HUE , 0 )
711- == light_data .get (const .HUE_ATTR_HUE , 0 )
712- and prev_data .get (const .HUE_ATTR_SAT , 0 )
713- == light_data .get (const .HUE_ATTR_SAT , 0 )
714- and prev_data .get (const .HUE_ATTR_CT , 0 )
715- == light_data .get (const .HUE_ATTR_CT , 0 )
716- and prev_data .get (const .HUE_ATTR_XY , [0 , 0 ])
717- == light_data .get (const .HUE_ATTR_XY , [0 , 0 ])
718- and prev_data .get (const .HUE_ATTR_EFFECT , "none" )
719- == light_data .get (const .HUE_ATTR_EFFECT , "none" )
720- and prev_data .get (const .HUE_ATTR_ALERT , "none" )
721- == light_data .get (const .HUE_ATTR_ALERT , "none" )
722- ):
707+ if prev_data == light_data :
723708 return False
724709
725710 self ._prev_data [entity ["entity_id" ]].update (light_data )
@@ -1025,8 +1010,7 @@ async def __async_get_group_id(self, group_id: str) -> dict:
10251010 """Get group data for a group."""
10261011 if group_id == "0" :
10271012 all_lights = await self .__async_get_all_lights ()
1028- group_conf = {}
1029- group_conf ["lights" ] = []
1013+ group_conf = {"lights" : []}
10301014 for light_id in all_lights :
10311015 group_conf ["lights" ].append (light_id )
10321016 else :
0 commit comments