Upgrade ring_doorbell to 0.2.1 to fix oauth issues (#14984)

* Upgraded to ring_doorbell to 0.2.1 to fix oauth issues

* Updated unittest to cover Ring oauth
This commit is contained in:
Marcelo Moreira de Mello 2018-06-16 02:58:39 -04:00 committed by Martin Hjelmare
parent 2ec295a6f8
commit 2839f0ff5f
7 changed files with 17 additions and 3 deletions

View file

@ -44,6 +44,8 @@ class TestRingBinarySensorSetup(unittest.TestCase):
@requests_mock.Mocker()
def test_binary_sensor(self, mock):
"""Test the Ring sensor class and methods."""
mock.post('https://oauth.ring.com/oauth/token',
text=load_fixture('ring_oauth.json'))
mock.post('https://api.ring.com/clients_api/session',
text=load_fixture('ring_session.json'))
mock.get('https://api.ring.com/clients_api/ring_devices',