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:
1 parent
2ec295a6f8
commit
2839f0ff5f
7 files changed
+17
-3
No files matched your search
@@ -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',
|
||||
|
||||
Reference in new issue
Block a user