8000 Fix in-home chime duration setter by briangoldstein · Pull Request #428 · python-ring-doorbell/python-ring-doorbell · GitHub
[go: up one dir, main page]

Skip to content

Conversation

@briangoldstein
Copy link
Contributor

async_set_existing_doorbell_type_duration was checking for the duration to be between 0 and 11, but Ring only accepts 0 through 10 for duration. I added a new set of min/max variables rather than using a different min/max set in order to allow more flexibility in the future.

Error from Ring when setting duration to 11:

ring_doorbell.exceptions.RingError: HTTP error with status code 422 during query of url https://api.ring.com/clients_api/doorbots/987652: 422, message='Unprocessable Entity', url='https://api.ring.com/clients_api/doorbots/987652?doorbot%5Bdescription%5D=Front+Door&doorbot%5Bsettings%5D%5Bchime_settings%5D%5Bduration%5D=11

@coveralls
Copy link

Coverage Status

coverage: 79.324% (+0.5%) from 78.829%
when pulling 695e3d7 on briangoldstein:existing-doorbell-duration
into 7a817b3 on python-ring-doorbell:master.

@sdb9696 sdb9696 changed the title Ring doorbell in-home chime duration updates Fix in-home chime duration setter Sep 4, 2024
@sdb9696 sdb9696 merged commit 32c19ef into python-ring-doorbell:master Sep 4, 2024
@sdb9696
Copy link
Member
sdb9696 commented Sep 4, 2024

LGTM!, many thanks @briangoldstein !

@briangoldstein briangoldstein deleted the existing-doorbell-duration branch September 4, 2024 18:37
@sdb9696 sdb9696 added this to the 0.9.4 milestone Sep 5, 2024
@sdb9696 sdb9696 added the bugfix Label for PRs that fix a bug label Sep 5, 2024
@sdb9696 sdb9696 mentioned this pull request Sep 5, 2024
sdb9696 added a commit that referenced this pull request Sep 5, 2024
## [0.9.4](https://github.com/python-ring-doorbell/python-ring-doorbell/tree/0.9.4) (2024-09-05)

[Full Changelog](0.9.3...0.9.4)

**Release highlights:**

- Migrate from poetry to uv for package management
- Bugfixes for in-home-chime

**Implemented enhancements:**

- Add WebRTC live streaming session generation [\#348](#348) (@sdb9696)

**Fixed bugs:**

- Fix in-home chime duration setter [\#428](#428) (@briangoldstein)

**Documentation updates:**

- Fix broken links in readme [\#426](#426) (@briangoldstein)

**Project maintenance:**

- Migrate to uv and add testpypi publishing [\#430](#430) (@sdb9696)
@github-actions github-actions bot locked and limited conversation to collaborators Sep 13, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

bugfix Label for PRs that fix a bug

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants

0