code: def sleep(self):
          
          try:
              self.send_command("SLEEP")
              return True
          except requests.exceptions.RequestException:
              _LOGGER.error("Connection error: sleep command not sent.")
              return False
docs: Sleep