From 23427098039a44d11c45e082c17f52e37594db33 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Mon, 13 Aug 2018 10:52:47 +0200 Subject: [PATCH] Upgrade beautifulsoup4 to 4.6.3 (#15946) --- homeassistant/components/device_tracker/linksys_ap.py | 2 +- homeassistant/components/sensor/geizhals.py | 9 +++++---- homeassistant/components/sensor/scrape.py | 4 ++-- homeassistant/components/sensor/sytadin.py | 2 +- requirements_all.txt | 2 +- 5 files changed, 10 insertions(+), 9 deletions(-) diff --git a/homeassistant/components/device_tracker/linksys_ap.py b/homeassistant/components/device_tracker/linksys_ap.py index a2a371163fd..5fa33583567 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.1'] +REQUIREMENTS = ['beautifulsoup4==4.6.3'] _LOGGER = logging.getLogger(__name__) diff --git a/homeassistant/components/sensor/geizhals.py b/homeassistant/components/sensor/geizhals.py index 06062b26b00..0458c2022af 100644 --- a/homeassistant/components/sensor/geizhals.py +++ b/homeassistant/components/sensor/geizhals.py @@ -15,14 +15,16 @@ from homeassistant.util import Throttle from homeassistant.helpers.entity import Entity from homeassistant.const import (CONF_DOMAIN, CONF_NAME) -REQUIREMENTS = ['beautifulsoup4==4.6.1'] +REQUIREMENTS = ['beautifulsoup4==4.6.3'] + _LOGGER = logging.getLogger(__name__) -CONF_PRODUCT_ID = 'product_id' CONF_DESCRIPTION = 'description' +CONF_PRODUCT_ID = 'product_id' CONF_REGEX = 'regex' ICON = 'mdi:coin' + MIN_TIME_BETWEEN_UPDATES = timedelta(seconds=120) PLATFORM_SCHEMA = PLATFORM_SCHEMA.extend({ @@ -54,8 +56,7 @@ def setup_platform(hass, config, add_devices, discovery_info=None): class Geizwatch(Entity): """Implementation of Geizwatch.""" - def __init__(self, name, description, product_id, domain, - regex): + def __init__(self, name, description, product_id, domain, regex): """Initialize the sensor.""" self._name = name self.description = description diff --git a/homeassistant/components/sensor/scrape.py b/homeassistant/components/sensor/scrape.py index e7aace8ec6d..0b57528c519 100644 --- a/homeassistant/components/sensor/scrape.py +++ b/homeassistant/components/sensor/scrape.py @@ -19,12 +19,12 @@ from homeassistant.const import ( from homeassistant.helpers.entity import Entity import homeassistant.helpers.config_validation as cv -REQUIREMENTS = ['beautifulsoup4==4.6.1'] +REQUIREMENTS = ['beautifulsoup4==4.6.3'] _LOGGER = logging.getLogger(__name__) -CONF_SELECT = 'select' CONF_ATTR = 'attribute' +CONF_SELECT = 'select' DEFAULT_NAME = 'Web scrape' DEFAULT_VERIFY_SSL = True diff --git a/homeassistant/components/sensor/sytadin.py b/homeassistant/components/sensor/sytadin.py index ff8e7d7ddfe..4aeb0cca32f 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.1'] +REQUIREMENTS = ['beautifulsoup4==4.6.3'] _LOGGER = logging.getLogger(__name__) diff --git a/requirements_all.txt b/requirements_all.txt index 79da92c24e8..7bef70ed377 100644 --- a/requirements_all.txt +++ b/requirements_all.txt @@ -163,7 +163,7 @@ batinfo==0.4.2 # homeassistant.components.sensor.geizhals # homeassistant.components.sensor.scrape # homeassistant.components.sensor.sytadin -beautifulsoup4==4.6.1 +beautifulsoup4==4.6.3 # homeassistant.components.zha bellows==0.6.0