def set_brightness(self, brightness):
percent = <NUM_LIT:0><EOL>if brightness > <NUM_LIT:0>:<EOL><INDENT>percent = round(brightness / <NUM_LIT>)<EOL><DEDENT>self.set_service_value(<EOL>self.dimmer_service,<EOL>'<STR_LIT>',<EOL>'<STR_LIT>',<EOL>percent)<EOL>self.set_cache_value('<STR_LIT>', percent)<EOL>
Set dimmer brightness.

        Converts the Vera level property for dimmable lights from a percentage
        to the 0 - 255 scale used by HA.