Skip to content

Commit

Permalink
p
Browse files Browse the repository at this point in the history
  • Loading branch information
Philip Vanloo committed Feb 14, 2024
1 parent 2c71759 commit 42f1885
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
MIT License

Copyright (c) 2023 Velleman Group nv
Copyright (c) 2024 Velleman Group nv

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
3 changes: 1 addition & 2 deletions src/linkplay/discovery.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,7 @@ async def discover_multirooms(bridges: List[LinkPlayBridge]) -> List[LinkPlayMul
followers: List[LinkPlayBridge] = []
for follower in properties[MultiroomAttribute.FOLLOWER_LIST]:
follower_uuid = follower[MultiroomAttribute.UUID]
follower_bridge = next((b for b in bridges if b.device.uuid == follower_uuid), None)
if follower_bridge:
if follower_bridge := next((b for b in bridges if b.device.uuid == follower_uuid), None):
followers.append(follower_bridge)

multirooms.append(LinkPlayMultiroom(bridge, followers))
Expand Down

0 comments on commit 42f1885

Please sign in to comment.