diff --git a/jc/parsers/bluetoothctl.py b/jc/parsers/bluetoothctl.py index 9bfe93d4..07b4c6d3 100644 --- a/jc/parsers/bluetoothctl.py +++ b/jc/parsers/bluetoothctl.py @@ -59,8 +59,8 @@ a controller and a device but there might be fields corresponding to one entity. "blocked": string, "connected": string, "legacy_pairing": string, - "rssi": string, - "txpower": string, + "rssi": int, + "txpower": int, "uuids": array } ] @@ -91,8 +91,8 @@ Examples: "Headset (00001708-0000-1000-8000-00805f9b34fb)", "Headset HS (00001831-0000-1000-8000-00805f9b34fb)" ], - "rssi": "-52", - "txpower": "4" + "rssi": -52, + "txpower": 4 } ] """ @@ -151,14 +151,14 @@ try: "blocked": str, "connected": str, "legacy_pairing": str, - "rssi": str, - "txpower": str, + "rssi": int, + "txpower": int, "uuids": List[str], }, ) except ImportError: Controller = Dict[str, Union[str, bool, List[str]]] - Device = Dict[str, Union[str, bool, List[str]]] + Device = Dict[str, Union[str, bool, int, List[str]]] _controller_head_pattern = r"Controller (?P
([0-9A-F]{2}:){5}[0-9A-F]{2}) (?P