From 4905f4dd97e9f2d5cdb4b36b79aa2e82a1c27b23 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Mon, 7 Jan 2019 19:16:04 +0100 Subject: [PATCH] Upgrade beautifulsoup4 to 4.7.1 --- homeassistant/components/device_tracker/linksys_ap.py | 5 +++-- homeassistant/components/sensor/scrape.py | 2 +- homeassistant/components/sensor/sytadin.py | 2 +- requirements_all.txt | 2 +- 4 files changed, 6 insertions(+), 5 deletions(-) diff --git a/homeassistant/components/device_tracker/linksys_ap.py b/homeassistant/components/device_tracker/linksys_ap.py index 5fa33583567..5638db4caaf 100644 --- a/homeassistant/components/device_tracker/linksys_ap.py +++ b/homeassistant/components/device_tracker/linksys_ap.py @@ -19,7 +19,7 @@ from homeassistant.const import ( INTERFACES = 2 DEFAULT_TIMEOUT = 10 -REQUIREMENTS = ['beautifulsoup4==4.6.3'] +REQUIREMENTS = ['beautifulsoup4==4.7.1'] _LOGGER = logging.getLogger(__name__) @@ -81,13 +81,14 @@ class LinksysAPDeviceScanner(DeviceScanner): request = self._make_request(interface) self.last_results.extend( [x.find_all('td')[1].text - for x in BS(request.content, "html.parser") + for x in BS(request.content, 'html.parser') .find_all(class_='section-row')] ) return True def _make_request(self, unit=0): + """Create a request to get the data.""" # No, the '&&' is not a typo - this is expected by the web interface. login = base64.b64encode(bytes(self.username, 'utf8')).decode('ascii') pwd = base64.b64encode(bytes(self.password, 'utf8')).decode('ascii') diff --git a/homeassistant/components/sensor/scrape.py b/homeassistant/components/sensor/scrape.py index 1058d0f43e7..9a67d381d42 100644 --- a/homeassistant/components/sensor/scrape.py +++ b/homeassistant/components/sensor/scrape.py @@ -20,7 +20,7 @@ from homeassistant.helpers.entity import Entity from homeassistant.exceptions import PlatformNotReady import homeassistant.helpers.config_validation as cv -REQUIREMENTS = ['beautifulsoup4==4.6.3'] +REQUIREMENTS = ['beautifulsoup4==4.7.1'] _LOGGER = logging.getLogger(__name__) diff --git a/homeassistant/components/sensor/sytadin.py b/homeassistant/components/sensor/sytadin.py index 18fa73f2341..082342a0393 100644 --- a/homeassistant/components/sensor/sytadin.py +++ b/homeassistant/components/sensor/sytadin.py @@ -18,7 +18,7 @@ from homeassistant.const import ( from homeassistant.helpers.entity import Entity from homeassistant.util import Throttle -REQUIREMENTS = ['beautifulsoup4==4.6.3'] +REQUIREMENTS = ['beautifulsoup4==4.7.1'] _LOGGER = logging.getLogger(__name__) diff --git a/requirements_all.txt b/requirements_all.txt index 82e96c0dcf4..d58d1e1d89f 100644 --- a/requirements_all.txt +++ b/requirements_all.txt @@ -187,7 +187,7 @@ batinfo==0.4.2 # homeassistant.components.device_tracker.linksys_ap # homeassistant.components.sensor.scrape # homeassistant.components.sensor.sytadin -beautifulsoup4==4.6.3 +beautifulsoup4==4.7.1 # homeassistant.components.zha bellows==0.7.0