(self, state, tick_id = None)
Set state.
Set state.
Set state .
def change_state(self, state, tick_id = None):
        """Set state."""
        if self.state == state and self.sync_tick_id == tick_id:
            return
        self.state = state
        self.sync_tick_id = tick_id
        self.changed = 1
        self.log.debug("%s: change_state to %s", self.name, self.render_state())
def change_state ( self , state , tick_id = None ) : if self . state == state and self . sync_tick_id == tick_id : return self . state = state self . sync_tick_id = tick_id self . changed = 1 self . log . debug ( "%s: change_state to %s" , self . name , self . render_state ( ) )