Skip to content

Commit

Permalink
Merge pull request #2 from bacherd/move-functions-to-root
Browse files Browse the repository at this point in the history
use next to find ga address
  • Loading branch information
bacherd authored Jul 24, 2023
2 parents cfe75df + 875a3f3 commit ec80e8b
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions xknxproject/loader/project_loader.py
Original file line number Diff line number Diff line change
Expand Up @@ -92,11 +92,11 @@ def load(
)

for group_address in function.group_addresses:
group_address.address = [
g
for g in group_address_list
if g.identifier == group_address.ref_id
][0].address
group_address.address = next(
ga.address
for ga in group_address_list
if ga.identifier == group_address.ref_id
)

return group_address_list, areas, devices, spaces, project_info, functions

Expand Down

0 comments on commit ec80e8b

Please sign in to comment.