From ce05af272016a6ead951361661ad429d58948639 Mon Sep 17 00:00:00 2001 From: David Lie Date: Sun, 3 Feb 2019 17:47:38 -0500 Subject: [PATCH] Revert pyfoscam back to libpyfoscam (#20727) * Change foscam python library to pyfoscam, which is more up to date and has several critical bug fixes. * Update requirements_all.txt to match. * Inserting automatically generated requirements.txt * Revert changes until pyfoscam captures recent bug fixes. The pyfoscam version pulled by pip is currently broken. * Updated requirements_all.txt based on changing pyfoscam back to libpyfoscam. --- homeassistant/components/camera/foscam.py | 4 ++-- requirements_all.txt | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/homeassistant/components/camera/foscam.py b/homeassistant/components/camera/foscam.py index 173e115cbaf..ceec57f7755 100644 --- a/homeassistant/components/camera/foscam.py +++ b/homeassistant/components/camera/foscam.py @@ -15,7 +15,7 @@ from homeassistant.helpers import config_validation as cv _LOGGER = logging.getLogger(__name__) -REQUIREMENTS = ['pyfoscam==1.2'] +REQUIREMENTS = ['libpyfoscam==1.0'] CONF_IP = 'ip' @@ -43,7 +43,7 @@ class FoscamCam(Camera): def __init__(self, device_info): """Initialize a Foscam camera.""" - from foscam import FoscamCamera + from libpyfoscam import FoscamCamera super(FoscamCam, self).__init__() diff --git a/requirements_all.txt b/requirements_all.txt index 388498d487a..072ec06f2c7 100644 --- a/requirements_all.txt +++ b/requirements_all.txt @@ -605,6 +605,9 @@ libnacl==1.6.1 # homeassistant.components.dyson libpurecoollink==0.4.2 +# homeassistant.components.camera.foscam +libpyfoscam==1.0 + # homeassistant.components.device_tracker.mikrotik librouteros==2.2.0 @@ -1014,9 +1017,6 @@ pyflunearyou==1.0.1 # homeassistant.components.light.futurenow pyfnip==0.2 -# homeassistant.components.camera.foscam -pyfoscam==1.2 - # homeassistant.components.fritzbox pyfritzhome==0.4.0