From 396e68a4b90a092f2ea4987695c4b37e13820da9 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Tue, 8 Oct 2019 18:28:37 +0200 Subject: [PATCH] Upgrade beautifulsoup4 to 4.8.1 (#27325) --- homeassistant/components/scrape/manifest.json | 2 +- homeassistant/components/scrape/sensor.py | 3 +-- requirements_all.txt | 2 +- 3 files changed, 3 insertions(+), 4 deletions(-) diff --git a/homeassistant/components/scrape/manifest.json b/homeassistant/components/scrape/manifest.json index 989070900ca..5fdcca372b9 100644 --- a/homeassistant/components/scrape/manifest.json +++ b/homeassistant/components/scrape/manifest.json @@ -3,7 +3,7 @@ "name": "Scrape", "documentation": "https://www.home-assistant.io/integrations/scrape", "requirements": [ - "beautifulsoup4==4.8.0" + "beautifulsoup4==4.8.1" ], "dependencies": [], "codeowners": [ diff --git a/homeassistant/components/scrape/sensor.py b/homeassistant/components/scrape/sensor.py index b6a6fdf4896..0bfb7351c88 100644 --- a/homeassistant/components/scrape/sensor.py +++ b/homeassistant/components/scrape/sensor.py @@ -1,6 +1,7 @@ """Support for getting data from websites with scraping.""" import logging +from bs4 import BeautifulSoup import voluptuous as vol from requests.auth import HTTPBasicAuth, HTTPDigestAuth @@ -124,8 +125,6 @@ class ScrapeSensor(Entity): _LOGGER.error("Unable to retrieve data") return - from bs4 import BeautifulSoup - raw_data = BeautifulSoup(self.rest.data, "html.parser") _LOGGER.debug(raw_data) diff --git a/requirements_all.txt b/requirements_all.txt index 1369d0ff0e6..f6993cc72c5 100644 --- a/requirements_all.txt +++ b/requirements_all.txt @@ -267,7 +267,7 @@ batinfo==0.4.2 # beacontools[scan]==1.2.3 # homeassistant.components.scrape -beautifulsoup4==4.8.0 +beautifulsoup4==4.8.1 # homeassistant.components.beewi_smartclim beewi_smartclim==0.0.7