Skip to content

Commit

Permalink
Remove unused changed argument from BlueZManager._run_advertisement_c…
Browse files Browse the repository at this point in the history
…allbacks
  • Loading branch information
bdraco authored and dlech committed Aug 22, 2024
1 parent 74a937c commit a065527
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions bleak/backends/bluezdbus/manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@
Callable,
Coroutine,
Dict,
Iterable,
List,
MutableMapping,
NamedTuple,
Expand Down Expand Up @@ -926,7 +925,7 @@ def _parse_msg(self, message: Message) -> None:
# devices that only advertise once and then go to sleep for a while.
elif interface == defs.DEVICE_INTERFACE:
self._run_advertisement_callbacks(
obj_path, cast(Device1, unpacked_props), unpacked_props.keys()
obj_path, cast(Device1, unpacked_props)
)
elif message.member == "InterfacesRemoved":
obj_path, interfaces = message.body
Expand Down Expand Up @@ -1003,7 +1002,7 @@ def _parse_msg(self, message: Message) -> None:
device_path = message_path

self._run_advertisement_callbacks(
device_path, cast(Device1, self_interface), changed.keys()
device_path, cast(Device1, self_interface)
)

# handle device condition watchers
Expand Down Expand Up @@ -1035,9 +1034,7 @@ def _parse_msg(self, message: Message) -> None:
message_path, new_value
)

def _run_advertisement_callbacks(
self, device_path: str, device: Device1, changed: Iterable[str]
) -> None:
def _run_advertisement_callbacks(self, device_path: str, device: Device1) -> None:
"""
Runs any registered advertisement callbacks.
Expand Down

0 comments on commit a065527

Please sign in to comment.