mirror of
https://github.com/home-assistant/core.git
synced 2025-07-23 05:07:41 +00: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:
parent
eae21be5b9
commit
8b5ab3221f
@ -90,6 +90,13 @@ class QVRProCamera(Camera):
|
|||||||
|
|
||||||
def camera_image(self):
|
def camera_image(self):
|
||||||
"""Get image bytes from camera."""
|
"""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)
|
return self._client.get_snapshot(self.guid)
|
||||||
|
|
||||||
async def stream_source(self):
|
async def stream_source(self):
|
||||||
|
@ -2,6 +2,6 @@
|
|||||||
"domain": "qvr_pro",
|
"domain": "qvr_pro",
|
||||||
"name": "QVR Pro",
|
"name": "QVR Pro",
|
||||||
"documentation": "https://www.home-assistant.io/integrations/qvr_pro",
|
"documentation": "https://www.home-assistant.io/integrations/qvr_pro",
|
||||||
"requirements": ["pyqvrpro==0.51"],
|
"requirements": ["pyqvrpro==0.52"],
|
||||||
"codeowners": ["@oblogic7"]
|
"codeowners": ["@oblogic7"]
|
||||||
}
|
}
|
||||||
|
@ -1499,7 +1499,7 @@ pypoint==1.1.2
|
|||||||
pyps4-2ndscreen==1.0.7
|
pyps4-2ndscreen==1.0.7
|
||||||
|
|
||||||
# homeassistant.components.qvr_pro
|
# homeassistant.components.qvr_pro
|
||||||
pyqvrpro==0.51
|
pyqvrpro==0.52
|
||||||
|
|
||||||
# homeassistant.components.qwikswitch
|
# homeassistant.components.qwikswitch
|
||||||
pyqwikswitch==0.93
|
pyqwikswitch==0.93
|
||||||
|
Loading…
x
Reference in New Issue
Block a user