Using 0.6.0 and Python 3.6.9 I get the error AttributeError: 'Ring' object has no attribute 'stickup_cams'
when issuing the following code:
def main():
if cache_file.is_file():
auth = Auth(
"HomeAssistant/0.105.0dev0",
json.loads(cache_file.read_text()),
token_updated,
)
else:
username = ''
password = ''
auth = Auth(None,None)
try:
auth.fetch_token(username, password)
except MissingTokenError:
auth.fetch_token(username, password, otp_callback())
#pprint(auth.token_updater)
ring = Ring(auth)
ring.update_data()
pprint(ring.devices())
for dev in ring.stickup_cams:
# refresh data
dev.update_health_data()
print('Account ID: %s' % dev.account_id)
print('Address: %s' % dev.address)
print('Family: %s' % dev.family)
print('ID: %s' % dev.id)
print('Name: %s' % dev.name)
print('Timezone: %s' % dev.timezone)
print('Wifi Name: %s' % dev.wifi_name)
print('Wifi RSSI: %s' % dev.wifi_signal_strength)
Output is as follows:
{'authorized_doorbots': [<RingDoorBell: Warehouse Door>,<RingDoorBell: Office Front Door>],
'chimes': [<RingChime: Downstairs>, <RingChime: Bedroom Chime>],
'doorbots': [<RingDoorBell: Front Door>],
'stickup_cams': [<RingStickUpCam: Front>,<RingStickUpCam: Garage>,RingStickUpCam:Parking]}
Traceback (most recent call last):
File "test.py", line 63, in
main()
File "test.py", line 44, in main
for dev in ring.stickup_cams:
AttributeError: 'Ring' object has no attribute 'stickup_cams'
I was able to authenticate earlier but couldn't get_snapshots.
Now I can't retrieve anything from the cameras
Using 0.6.0 and Python 3.6.9 I get the error AttributeError: 'Ring' object has no attribute 'stickup_cams'
when issuing the following code:
def main():
if cache_file.is_file():
auth = Auth(
"HomeAssistant/0.105.0dev0",
json.loads(cache_file.read_text()),
token_updated,
)
else:
username = ''
password = ''
auth = Auth(None,None)
try:
auth.fetch_token(username, password)
except MissingTokenError:
auth.fetch_token(username, password, otp_callback())
#pprint(auth.token_updater)
{'authorized_doorbots': [<RingDoorBell: Warehouse Door>,<RingDoorBell: Office Front Door>],
'chimes': [<RingChime: Downstairs>, <RingChime: Bedroom Chime>],
'doorbots': [<RingDoorBell: Front Door>],
'stickup_cams': [<RingStickUpCam: Front>,<RingStickUpCam: Garage>,RingStickUpCam:Parking]}
Traceback (most recent call last):
File "test.py", line 63, in
main()
File "test.py", line 44, in main
for dev in ring.stickup_cams:
AttributeError: 'Ring' object has no attribute 'stickup_cams'
I was able to authenticate earlier but couldn't get_snapshots.
Now I can't retrieve anything from the cameras