Add Abode camera on and off support#35164
Conversation
|
Upstream PR has been merged. I also made a PR for documentation updates. |
bdraco
left a comment
There was a problem hiding this comment.
Looks like a bit more coverage is needed, and then this should be good to go.
pytest --cov=homeassistant/components/abode/ --cov-report term-missing -- tests/components/abode/test_*.py
----------- coverage: platform linux, python 3.8.1-final-0 -----------
Name Stmts Miss Cover Missing
-------------------------------------------------------------------------------------
homeassistant/components/abode/__init__.py 176 14 92% 97-105, 121-123, 171-172, 239-254, 311-312, 341, 389
homeassistant/components/abode/alarm_control_panel.py 38 0 100%
homeassistant/components/abode/binary_sensor.py 20 0 100%
homeassistant/components/abode/camera.py 58 18 69% 60-61, 65-74, 78-83, 95-97, 102
homeassistant/components/abode/config_flow.py 39 0 100%
homeassistant/components/abode/const.py 5 0 100%
homeassistant/components/abode/cover.py 18 0 100%
homeassistant/components/abode/light.py 51 0 100%
homeassistant/components/abode/lock.py 18 0 100%
homeassistant/components/abode/sensor.py 45 1 98% 30
homeassistant/components/abode/switch.py 43 0 100%
-------------------------------------------------------------------------------------
TOTAL 511 33 94%
|
There hasn't been any activity on this pull request recently. This pull request has been automatically marked as stale because of that and will be closed if no further activity occurs within 7 days. |
|
Unfortunately this is about all I’m able to do with tests. |
|
Should we schedule a state update after the turn on and turn off? |
|
I didn't add it because it won't change anything right now. The camera status is just based on whether it's actually online or offline (i.e. connected to the Abode gateway). This privacy mode just makes it so the live stream is not accessible, but it's not a property that Home Assistant currently uses. |
bdraco
left a comment
There was a problem hiding this comment.
Just needs the conflict resolved
eb23bc5 to
b067bc1
Compare
|
@balloob Just made a commit which bumps the abodepy version and updates this component to reflect the changes in abodepy.
Sorry for adding onto this PR and if you want me to split off the last one, I can but I figured it's extremely minor and is needed to resolve an issue so might as well just add it here with this abodepy version bump. Edit: Not sure why hassfest is failing. For some reason the latest manifest wasn't pulled in when I rebased. Just synced the changes by hand and committed the manifest file. Should hopefully fix it. |
|
Looks good |
|
I think its simple enough and there aren't any breaking changes so it should be ok |
* Add Abode camera controls * Add tests for camera turn on and off service * Bump abodepy version * Bump abodepy version and updates to reflect changes * Update manifest
Proposed change
Add support to turn off Abode cameras using the
camera.turn_onandcamera.turn_offservice. This PR requires an upstream PR merge (abodepy).I will make another commit to bump the abodepy version once the upstream PR is merged.Update: Upstream PR has been merged. This PR is ready to be merged once reviewed.
Type of change
Additional information
Checklist
black --fast homeassistant tests)If user exposed functionality or configuration variables are added/changed:
If the code communicates with devices, web services, or third-party tools:
Updated and included derived files by running:
python3 -m script.hassfest.requirements_all.txt.Updated by running
python3 -m script.gen_requirements_all..coveragerc.The integration reached or maintains the following Integration Quality Scale: