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:
parent
2ec295a6f8
commit
2839f0ff5f
7 changed files with 17 additions and 3 deletions
|
@ -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',
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue