Skip to content

Add QVR Pro integration#31173

Merged
MartinHjelmare merged 37 commits into
home-assistant:devfrom
oblogic7:qvrpro
Mar 3, 2020
Merged

Add QVR Pro integration#31173
MartinHjelmare merged 37 commits into
home-assistant:devfrom
oblogic7:qvrpro

Conversation

@oblogic7
Copy link
Copy Markdown
Contributor

@oblogic7 oblogic7 commented Jan 26, 2020

Proposed change

Allows QVR Pro channels to be added as cameras to Home Assistant. Also adds two services for starting and stopping recording of a specified channel in QVR Pro.

Type of change

  • Dependency upgrade
  • Bugfix (non-breaking change which fixes an issue)
  • New integration (thank you!)
  • New feature (which adds functionality to an existing integration)
  • Breaking change (fix/feature causing existing functionality to break)
  • Code quality improvements to existing code or addition of tests

Example entry for configuration.yaml:

# Example configuration.yaml
qvrpro:
  host: 192.168.1.102
  username: pyqvruser
  password: password
  exclude_channels: 2,5,6

Additional information

Checklist

  • The code change is tested and works locally.
  • Local tests pass. Your PR cannot be merged unless tests pass
  • There is no commented out code in this PR.
  • I have followed the development checklist
  • The code has been formatted using Black (black --fast homeassistant tests)
  • Tests have been added to verify that the new code works.

If user exposed functionality or configuration variables are added/changed:

If the code communicates with devices, web services, or third-party tools:

  • The manifest file has all fields filled out correctly.
    Updated and included derived files by running: python3 -m script.hassfest.
  • New or updated dependencies have been added to requirements_all.txt.
    Updated by running python3 -m script.gen_requirements_all.
  • Untested files have been added to .coveragerc.

The integration reached or maintains the following Integration Quality Scale:

  • No score or internal
  • 🥈 Silver
  • 🥇 Gold
  • 🏆 Platinum

@oblogic7
Copy link
Copy Markdown
Contributor Author

I do not see any reason why the pipeline is failing on CODEOWNERS file. Running python3 -m script.hassfest does not result in any changes. How can I figure out why it is complaining about that file?

@MartinHjelmare
Copy link
Copy Markdown
Member

Codeowners file should update since the codeowners item is set in manifest.json.

I'd try rebasing on latest dev branch and then run the hassfest script again.

@springstan springstan changed the title QVR Pro Add QVR Pro integration Jan 31, 2020
Comment thread homeassistant/components/qvrpro/__init__.py Outdated
Comment thread homeassistant/components/qvrpro/__init__.py Outdated
Comment thread homeassistant/components/qvrpro/__init__.py Outdated
oblogic7 and others added 4 commits February 3, 2020 17:23
Co-Authored-By: springstan <46536646+springstan@users.noreply.github.com>
…nto qvrpro

� Conflicts:
�	homeassistant/components/qvrpro/__init__.py
Comment thread homeassistant/components/qvrpro/__init__.py Outdated
Comment thread homeassistant/components/qvrpro/camera.py Outdated
Comment thread homeassistant/components/qvrpro/__init__.py
Comment thread homeassistant/components/qvr_pro/const.py Outdated
Comment thread homeassistant/components/qvr_pro/__init__.py Outdated
Comment thread homeassistant/components/qvr_pro/__init__.py Outdated
Comment thread homeassistant/components/qvr_pro/__init__.py Outdated
Comment thread homeassistant/components/qvr_pro/__init__.py Outdated
Comment thread homeassistant/components/qvr_pro/camera.py
Comment thread homeassistant/components/qvr_pro/camera.py Outdated
Comment thread homeassistant/components/qvr_pro/__init__.py Outdated
Comment thread homeassistant/components/qvr_pro/__init__.py Outdated
Copy link
Copy Markdown
Member

@MartinHjelmare MartinHjelmare left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks great! Just a couple of comments.

Comment thread homeassistant/components/qvr_pro/camera.py Outdated
Comment thread homeassistant/components/qvr_pro/camera.py Outdated
@MartinHjelmare
Copy link
Copy Markdown
Member

Please update the config example in the PR description. The camera platform shouldn't be included.

@oblogic7
Copy link
Copy Markdown
Contributor Author

Updated to handle an error condition I just found relating to live streaming. Should be GTG if no changes are required for that update.

Comment thread homeassistant/components/qvr_pro/camera.py Outdated
@codecov
Copy link
Copy Markdown

codecov Bot commented Feb 20, 2020

Codecov Report

Merging #31173 into dev will increase coverage by 0.01%.
The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff             @@
##              dev   #31173      +/-   ##
==========================================
+ Coverage   94.71%   94.72%   +0.01%     
==========================================
  Files         766      767       +1     
  Lines       55568    55483      -85     
==========================================
- Hits        52630    52556      -74     
+ Misses       2938     2927      -11
Impacted Files Coverage Δ
homeassistant/components/template/binary_sensor.py 94.35% <ø> (ø) ⬆️
homeassistant/components/zha/core/__init__.py 100% <ø> (ø) ⬆️
homeassistant/components/flux/switch.py 95.37% <ø> (ø) ⬆️
homeassistant/components/zha/core/group.py 69.04% <ø> (ø) ⬆️
homeassistant/components/zha/core/discovery.py 98.79% <ø> (+2.53%) ⬆️
homeassistant/components/geo_rss_events/sensor.py 100% <ø> (ø) ⬆️
...assistant/components/mqtt/light/schema_template.py 80.18% <ø> (ø) ⬆️
homeassistant/components/uk_transport/sensor.py 93.47% <ø> (-0.73%) ⬇️
...omeassistant/components/mqtt/light/schema_basic.py 93.35% <ø> (ø) ⬆️
homeassistant/components/mqtt/light/__init__.py 100% <ø> (ø) ⬆️
... and 49 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 31e5fc2...e7ee71e. Read the comment docs.

Comment thread homeassistant/components/qvr_pro/camera.py Outdated
@oblogic7
Copy link
Copy Markdown
Contributor Author

I ran into an authentication bug with the QVR API and have opened an issue with QNAP. I decided it is better to disable support for the stream component until this is resolved. I don't know how long it will take for them to resolve, so we can go ahead and merge the integration when you are ready. LMK if any other changes are needed.

Comment thread homeassistant/components/qvr_pro/camera.py Outdated
@oblogic7
Copy link
Copy Markdown
Contributor Author

oblogic7 commented Mar 2, 2020

Anything else needed for this?

@MartinHjelmare MartinHjelmare merged commit ee7ce47 into home-assistant:dev Mar 3, 2020
@lock lock Bot locked and limited conversation to collaborators Mar 10, 2020
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.

4 participants