Skip to content

Commit da2e84d

Browse files
committed
Add output for auth state
1 parent ee9afee commit da2e84d

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

elmax/__init__.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,10 @@ async def disconnect(self):
7272
if self.authorized:
7373
self.authorized = False
7474

75+
async def is_authenticated(self):
76+
"""Get the state of the authentication."""
77+
return self.authorized
78+
7579
async def get_devices(self):
7680
"""Retrieve the devices."""
7781
if self.authorized is False:

0 commit comments

Comments
 (0)