'Write registers.'

def write_registers(self, unit, address, values):

    with self._lock:
        kwargs = ({'unit': unit} if unit else {})
        self._client.write_registers(address, values, **kwargs)
