diff --git a/python/ola/OlaClient.py b/python/ola/OlaClient.py index 20856bdfc1..7ac3ed6180 100644 --- a/python/ola/OlaClient.py +++ b/python/ola/OlaClient.py @@ -1172,8 +1172,7 @@ def UpdateDmxData(self, controller, request, callback): return False if request.universe in self._universe_callbacks: - data = array.array('B') - data.fromstring(request.data) + data = array.array('B', request.data) self._universe_callbacks[request.universe](data) response = Ola_pb2.Ack() callback(response) @@ -1477,8 +1476,7 @@ def _GetDmxComplete(self, callback, controller, response): universe = None if status.Succeeded(): - data = array.array('B') - data.fromstring(response.data) + data = array.array('B', response.data) universe = response.universe callback(status, universe, data)