mirror of
https://github.com/home-assistant/core.git
synced 2025-06-25 01:21:51 +02:00
Handle QVR Pro dropping connection (#33591)
* Handle QVR Pro dropping connection * Update homeassistant/components/qvr_pro/camera.py Co-Authored-By: Paulus Schoutsen <paulus@home-assistant.io> * Update homeassistant/components/qvr_pro/manifest.json Co-authored-by: Paulus Schoutsen <paulus@home-assistant.io>
This commit is contained in:
@ -90,6 +90,13 @@ class QVRProCamera(Camera):
|
||||
|
||||
def camera_image(self):
|
||||
"""Get image bytes from camera."""
|
||||
try:
|
||||
return self._client.get_snapshot(self.guid)
|
||||
|
||||
except QVRResponseError as ex:
|
||||
_LOGGER.error("Error getting image: %s", ex)
|
||||
self._client.connect()
|
||||
|
||||
return self._client.get_snapshot(self.guid)
|
||||
|
||||
async def stream_source(self):
|
||||
|
@ -2,6 +2,6 @@
|
||||
"domain": "qvr_pro",
|
||||
"name": "QVR Pro",
|
||||
"documentation": "https://www.home-assistant.io/integrations/qvr_pro",
|
||||
"requirements": ["pyqvrpro==0.51"],
|
||||
"requirements": ["pyqvrpro==0.52"],
|
||||
"codeowners": ["@oblogic7"]
|
||||
}
|
||||
|
@ -1499,7 +1499,7 @@ pypoint==1.1.2
|
||||
pyps4-2ndscreen==1.0.7
|
||||
|
||||
# homeassistant.components.qvr_pro
|
||||
pyqvrpro==0.51
|
||||
pyqvrpro==0.52
|
||||
|
||||
# homeassistant.components.qwikswitch
|
||||
pyqwikswitch==0.93
|
||||
|
Reference in New Issue
Block a user