old_contents: from . import PanState
  
  
  class State(PanState):
  
      def main(self):
  
          next_state = 'exit'
  
          self.logger.say("Looks like the sun is up, time for me to sleep.")
  
          # mount = self.panoptes.observatory.mount
  
          return next_state
  
new_contents: from . import PanState
  
  
  class State(PanState):
  
      def main(self):
  
          next_state = 'initializing'
  
          sleep_time = 300
  
          self.logger.say("Looks like the sun is up, time for me to sleep. Sleeping for {} seconds".format(sleep_time))
  
          self.sleep(sleep_time)
  
          # mount = self.panoptes.observatory.mount
  
          return next_state
  
subject: Use built in sleep