Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove unused changed argument from BlueZManager._run_advertisement_callbacks #1633

Merged
merged 1 commit into from
Aug 22, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading