Skip to content

Commit

Permalink
Merge pull request vrachieru#1 from guaycuru/master
Browse files Browse the repository at this point in the history
Add support for logging out
  • Loading branch information
vrachieru authored Dec 19, 2019
2 parents 0de2b4f + e83a3fc commit 74717b1
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 74717b1

Please sign in to comment.