Skip to content

Commit

Permalink
Add support for logging out
Browse files Browse the repository at this point in the history
  • Loading branch information
guaycuru committed Dec 19, 2019
1 parent 0de2b4f commit e83a3fc
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions asuswrt/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,17 @@ def refresh_asus_token(self):

self._asus_token_timestamp = datetime.now()

def logout(self):
'''
Logout
'''
response = self.request(
'GET',
'/Logout.asp'
)

self._session = requests.Session()

def get_sys_info(self):
'''
Get system information
Expand Down

0 comments on commit e83a3fc

Please sign in to comment.