def METHOD_NAME(self, name, value):
    if name == "matrix":
        self.matrix.set(*literal_eval(value))
    elif name == "parent":
        if self.parent and self.parent is not value:
            raise ValueError(f"Parent can not be set twice on {self}")
        super().METHOD_NAME(name, value)
        self.parent.matrix_i2c.add_handler(self._on_matrix_changed)
        self._on_matrix_changed(None, ())
    else:
        super().METHOD_NAME(name, value)