File tree Expand file tree Collapse file tree 2 files changed +3
-2
lines changed
Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -205,6 +205,9 @@ def _get_groups(self) -> None:
205205 for group in self ._domain_objects .findall ("./group" ):
206206 members : list [str ] = []
207207 group_id = group .get ("id" )
208+ self ._new_groups .append (group_id )
209+ if group_id in self ._existing_groups :
210+ continue
208211 group_name = group .find ("name" ).text
209212 group_type = group .find ("type" ).text
210213 group_appliances = group .findall ("appliances/appliance" )
Original file line number Diff line number Diff line change @@ -177,10 +177,8 @@ def _get_appliances(self) -> bool:
177177 removed = list (set (self ._existing_appliances ) - set (self ._new_appliances ))
178178 if self ._existing_appliances :
179179 if not removed :
180- LOGGER .debug ("HOI no new or removed appliance(s)." )
181180 return False
182181 else :
183- LOGGER .debug ("HOI removed appliance(s): %s" , removed )
184182 for appliance in removed :
185183 self .gw_entities .pop (appliance )
186184 return False
You can’t perform that action at this time.
0 commit comments