diff --git a/src/mcbluetooth/dbus_client.py b/src/mcbluetooth/dbus_client.py index 4536f86..c3cc5ea 100644 --- a/src/mcbluetooth/dbus_client.py +++ b/src/mcbluetooth/dbus_client.py @@ -569,7 +569,7 @@ class BlueZClient: """ iface = await self._get_interface(char_path, BLUEZ_GATT_CHAR_IFACE) options = {"type": Variant("s", write_type)} - await iface.call_write_value(list(value), options) + await iface.call_write_value(bytearray(value), options) async def start_notify(self, char_path: str) -> None: """Start notifications for a characteristic."""