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>pull/33591/merge
parent
eae21be5b9
commit
8b5ab3221f
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue