def update_value(self, key, value):
if key == "<STR_LIT>":<EOL><INDENT>self._inhibited = value != "<STR_LIT>"<EOL><DEDENT>elif key == "<STR_LIT>":<EOL><INDENT>self._temperature = int(value.rstrip("<STR_LIT>"), <NUM_LIT:10>)<EOL><DEDENT>elif key == "<STR_LIT>":<EOL><INDENT>self._period = value<EOL><DEDENT>elif key == "<STR_LIT>":<EOL><INDENT>self._brightness = value<EOL><DEDENT>elif key == "<STR_LIT>":<EOL><INDENT>location = []<EOL>for x in value.split("<STR_LIT:U+002CU+0020>"):<EOL><INDENT>v, d = x.split("<STR_LIT:U+0020>")<EOL>location.append(float(v) * (<NUM_LIT:1> if d in "<STR_LIT>" else -<NUM_LIT:1>))<EOL><DEDENT>self._location = (location)<EOL><DEDENT>
Parse key value pairs to update their values