def write(self, addr: str, value: object) -> None:
    '\n        Stores the write value in memory to be written as part of a group write when changes are sent to\n        hardware.'
    with lock:
        to_str = self._value_to_str(value)
        if self.update_reads_on_write:
            self._io[addr] = value
        self._changes[addr] = to_str
Stores the write value in memory to be written as part of a group write when changes are sent to
hardware.
def write(self, addr: str, value: object) -> None:
    '\n        Stores the write value in memory to be written as part of a group write when changes are sent to\n        hardware.'
    with lock:
        to_str = self._value_to_str(value)
        if self.update_reads_on_write:
            self._io[addr] = value
        self._changes[addr] = to_str