Skip to content

Commit 8481b9d

Browse files
committed
Fixed async words in blocking interfaces
1 parent 78bfcde commit 8481b9d

File tree

2 files changed

+64
-64
lines changed

2 files changed

+64
-64
lines changed

sdbus_block/networkmanager/interfaces_devices.py

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -584,7 +584,7 @@ class NetworkManagerDeviceWifiP2PInterface(
584584
"""Wi-Fi Peet to Peer device interface"""
585585

586586
@dbus_method('a{sv}')
587-
async def start_find(
587+
def start_find(
588588
self,
589589
options: Dict[str, Tuple[str, Any]],
590590
) -> None:
@@ -598,7 +598,7 @@ async def start_find(
598598
raise NotImplementedError
599599

600600
@dbus_method()
601-
async def stop_find(self) -> None:
601+
def stop_find(self) -> None:
602602
"""Stop find operation"""
603603
raise NotImplementedError
604604

@@ -658,7 +658,7 @@ class NetworkManagerDeviceWirelessInterface(
658658
@dbus_method(
659659
result_signature='ao',
660660
)
661-
async def get_all_access_points(
661+
def get_all_access_points(
662662
self,
663663
) -> List[str]:
664664
"""Return the list of paths to all access points visible
@@ -669,7 +669,7 @@ async def get_all_access_points(
669669

670670
@dbus_method('a{sv}',
671671
)
672-
async def request_scan(
672+
def request_scan(
673673
self,
674674
options: Dict[str, Tuple[str, Any]],
675675
) -> None:
@@ -734,7 +734,7 @@ class NetworkManagerDeviceInterface(
734734
@dbus_method(
735735
input_signature='a{sa{sv}}tu',
736736
)
737-
async def reapply(
737+
def reapply(
738738
self,
739739
connection: Dict[str, Dict[str, Tuple[str, Any]]],
740740
version_id: int,
@@ -752,7 +752,7 @@ async def reapply(
752752
input_signature='u',
753753
result_signature='a{sa{sv}}t',
754754
)
755-
async def get_applied_connection(
755+
def get_applied_connection(
756756
self,
757757
flags: int = 0,
758758
) -> Tuple[Dict[str, Dict[str, Tuple[str, Any]]], int]:
@@ -765,14 +765,14 @@ async def get_applied_connection(
765765
raise NotImplementedError
766766

767767
@dbus_method()
768-
async def disconnect(
768+
def disconnect(
769769
self,
770770
) -> None:
771771
"""Disconnect device and prevent from automatically activating"""
772772
raise NotImplementedError
773773

774774
@dbus_method()
775-
async def delete(
775+
def delete(
776776
self,
777777
) -> None:
778778
"""Deletes the software device.
@@ -994,7 +994,7 @@ class NetworkManagerPPPInterface(
994994
@dbus_method(
995995
result_signature='ss',
996996
)
997-
async def need_secrets(
997+
def need_secrets(
998998
self,
999999
) -> Tuple[str, str]:
10001000
"""Need secrets?
@@ -1004,23 +1004,23 @@ async def need_secrets(
10041004
raise NotImplementedError
10051005

10061006
@dbus_method('a{sv}')
1007-
async def set_ip4_config(
1007+
def set_ip4_config(
10081008
self,
10091009
config: Dict[str, Tuple[str, Any]],
10101010
) -> None:
10111011
"""Set IPv4 configuration"""
10121012
raise NotImplementedError
10131013

10141014
@dbus_method('a{sv}')
1015-
async def set_ip6_config(
1015+
def set_ip6_config(
10161016
self,
10171017
config: Dict[str, Tuple[str, Any]],
10181018
) -> None:
10191019
"""Set IPv6 configuration"""
10201020
raise NotImplementedError
10211021

10221022
@dbus_method('u')
1023-
async def set_state(
1023+
def set_state(
10241024
self,
10251025
state: int,
10261026
) -> None:
@@ -1031,7 +1031,7 @@ async def set_state(
10311031
raise NotImplementedError
10321032

10331033
@dbus_method('i')
1034-
async def set_ifindex(
1034+
def set_ifindex(
10351035
self,
10361036
ifindex: int,
10371037
) -> None:

0 commit comments

Comments
 (0)