def brightness(self, value: int): write_file(path=self.brightness_path, value=str(value))
def update_color(self, color): write_file(path=self.brightness_color, value=color)
def set_color(self, color: str, position: Position): if not position in self.brightness_color_paths: raise RuntimeError( f"{position} is not supported for model {self.laptop_model}") write_file(self.brightness_color_paths[position], color)