diff --git a/astarte/device/device_grpc.py b/astarte/device/device_grpc.py index a508860a..bc4559da 100644 --- a/astarte/device/device_grpc.py +++ b/astarte/device/device_grpc.py @@ -162,7 +162,7 @@ def remove_interface(self, interface_name: str) -> None: if interface_name in self.__interfaces_bins: del self.__interfaces_bins[interface_name] if self.__connection_state is ConnectionState.CONNECTED: - interfaces_name = InterfacesName(names=[json.dumps(interface_name).encode()]) + interfaces_name = InterfacesName(names=[interface_name.encode()]) self.__msghub_stub.RemoveInterfaces(interfaces_name) def connect(self) -> None: