code: def get_state(self, state):
          
          # Check to see if we have a change request pending; if we do
          # return the value we expect it to change to.
          for data in list(self._send_queue.queue):
              desired_states = data['desired_states']
              for desired_state in desired_states:
                  if desired_state['state'] == state:
                      return desired_state['enabled']
          if state == States.FILTER_LOW_SPEED:
              return (States.FILTER.value & self._flashing_states) != 0
          return (state.value & self._states) != 0
docs: Returns True if the specified state is enabled.