Android webcam better error handling / pump library 0.4 (#6518)
This commit is contained in:
1 parent
ffb1613d55
commit
44da43065f
4 files changed
+26
-21
No files matched your search
@@ -64,6 +64,8 @@ class IPWebcamSensor(AndroidIPCamEntity):
|
||||
def async_update(self):
|
||||
"""Retrieve latest state."""
|
||||
if self._sensor in ('audio_connections', 'video_connections'):
|
||||
if not self._ipcam.status_data:
|
||||
return
|
||||
self._state = self._ipcam.status_data.get(self._sensor)
|
||||
self._unit = 'Connections'
|
||||
else:
|
||||
|
||||
Reference in new issue
Block a user