5 self.state_to_set = None # public write, TODO: getters, setters?
6 self.state_last_set = None # public read
8 self._t = threading.Thread(target=self.loop)
16 if (self.state_to_set is not None):
17 if self.state_to_set != self.state_last_set:
18 stts = self.state_to_set # cache for parallelism
19 error = do_request(stts) # TODO
22 self.state_last_set = stts
24 time.sleep(SPACE_API_LOOP_DELAY)