Skip to content

Support for device model name property and has capability method - #116

Merged
tchellomello merged 3 commits into
python-ring-doorbell:masterfrom
jsetton:master
Feb 26, 2019
Merged

Support for device model name property and has capability method#116
tchellomello merged 3 commits into
python-ring-doorbell:masterfrom
jsetton:master

Conversation

@jsetton

@jsetton jsetton commented Feb 11, 2019

Copy link
Copy Markdown
Collaborator

Add the ability to get a given device model name and determine its capabilities.
Fixes: #112
Fixes: #114

@coveralls

coveralls commented Feb 11, 2019

Copy link
Copy Markdown

Coverage Status

Coverage decreased (-0.3%) to 63.655% when pulling cf2456e on jsetton:master into 10c6add on tchellomello:master.

Comment thread ring_doorbell/doorbot.py Outdated
@jsetton jsetton changed the title Support for model name and wired capability properties Support for device model name property and has capability method Feb 12, 2019
@jsetton

jsetton commented Feb 12, 2019

Copy link
Copy Markdown
Collaborator Author

I made the change as agreed. In the process, I swapped the wired property implementation for a capability check method, which is more in line with the capabilities matrix I compiled in my original issue.

The following capabilities can be determined for each device:

  • battery
  • light
  • siren
  • volume

On a side note, I removed the battery_life method from the chime class since that device is always hardwired.

@jsetton

jsetton commented Feb 20, 2019

Copy link
Copy Markdown
Collaborator Author

@tchellomello are you fine with the changes I made?

@tchellomello
tchellomello merged commit c057144 into python-ring-doorbell:master Feb 26, 2019
@tchellomello tchellomello mentioned this pull request Mar 5, 2019
@github-actions github-actions Bot locked and limited conversation to collaborators Apr 18, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

MSG_GENERIC_FAIL Feature Request: Add a model property to identify the different products

3 participants