code: def update_value(self, key, value):
          
  
          if key == "Status":
              self._inhibited = value != "Enabled"
          elif key == "Color temperature":
              self._temperature = int(value.rstrip("K"), 10)
          elif key == "Period":
              self._period = value
          elif key == "Brightness":
              self._brightness = value
          elif key == "Location":
              location = []
              for x in value.split(", "):
                  v, d = x.split(" ")
                  location.append(float(v) * (1 if d in "NE" else -1))
              self._location = (location)
docs: Parse key value pairs to update their values