docs: def mode_toggle(self, mode: str) -> bool:
          """Set mode to manual, auto or sleep"""
          head = helpers.req_headers(self.manager)
          body = helpers.req_body(self.manager, 'devicestatus')
          body['uuid'] = self.uuid
          if mode != body['mode'] and mode in ['sleep', 'auto', 'manual']:
              body['mode'] = mode
              if mode == 'manual':
                  body['level'] = 1
  
              r, _ = helpers.call_api('/131airPurifier/v1/device/updateMode',
                                      'put', json=body, headers=head)
  
              if r is not None and helpers.check_response(r, 'airpur_status'):
                  self.details['mode'] = mode
                  return True
  
          return False