Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
Signed-off-by: Simone Orru <simone.orru@secomind.com>
  • Loading branch information
sorru94 committed Nov 12, 2024
1 parent 78899a5 commit 9c9328b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion astarte/device/device_grpc.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 9c9328b

Please sign in to comment.