code: def set_state(self, entity_id, new_state, **kwargs):
          "Updates or creates the current state of an entity."
          return remote.set_state(self.api, new_state, **kwargsf set_state(self, entity_id, new_state, **kwargs):
          "Updates or creates the current state of an entity."
          return remote.set_state(self.api, new_state, **kwargs)
docs: Updates or creates the current state of an entity.