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 committed Aug 21, 2024
1 parent 74a937c commit f8ae48b
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions bleak/backends/bluezdbus/manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -926,7 +926,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 +1003,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 +1035,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 f8ae48b

Please sign in to comment.