Skip to content

Commit

Permalink
Merge pull request #175 from steve-gombos/auth-refactor
Browse files Browse the repository at this point in the history
Auth and ring class refactor
  • Loading branch information
balloob committed Jan 11, 2020
2 parents 7d8fc42 + 787ba4f commit b579e5e
Show file tree
Hide file tree
Showing 13 changed files with 181 additions and 540 deletions.
15 changes: 8 additions & 7 deletions README.rst
Expand Up @@ -41,11 +41,15 @@ Initializing your Ring object

.. code-block:: python
from ring_doorbell import Ring
myring = Ring('foo@bar', 'secret')
from pprint import pprint
from ring_doorbell import Ring, Auth
auth = Auth(None, token_updated)
auth.fetch_token(username, password)
ring = Ring(auth)
pprint(ring.devices)
myring.is_connected
True
Listing devices linked to your account
--------------------------------------
Expand Down Expand Up @@ -75,9 +79,6 @@ Playing with the attributes and functions
for dev in list(myring.stickup_cams + myring.chimes + myring.doorbells):
# refresh data
dev.update()
print('Account ID: %s' % dev.account_id)
print('Address: %s' % dev.address)
print('Family: %s' % dev.family)
Expand Down

0 comments on commit b579e5e

Please sign in to comment.