self.state = new_state
# look up the dictionary object for the current state, then construct
# a presence object using that as a keyword argument
self.state = new_state
# look up the dictionary object for the current state, then construct
# a presence object using that as a keyword argument