From 254b1c46ac9381415dd5e1699954b59ab7f2ae62 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Sun, 26 Jun 2016 19:13:52 +0200 Subject: [PATCH] Remove lxml dependency (#2374) --- homeassistant/components/sensor/swiss_hydrological_data.py | 4 ++-- requirements_all.txt | 3 --- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/homeassistant/components/sensor/swiss_hydrological_data.py b/homeassistant/components/sensor/swiss_hydrological_data.py index ddc31bb56ec..2589bd44955 100644 --- a/homeassistant/components/sensor/swiss_hydrological_data.py +++ b/homeassistant/components/sensor/swiss_hydrological_data.py @@ -16,7 +16,7 @@ import homeassistant.helpers.config_validation as cv from homeassistant.helpers.entity import Entity from homeassistant.util import Throttle -REQUIREMENTS = ['beautifulsoup4==4.4.1', 'lxml==3.6.0'] +REQUIREMENTS = ['beautifulsoup4==4.4.1'] _LOGGER = logging.getLogger(__name__) _RESOURCE = 'http://www.hydrodaten.admin.ch/en/' @@ -148,7 +148,7 @@ class HydrologicalData(object): try: tables = BeautifulSoup(response.content, - 'lxml').findChildren('table') + 'html.parser').findChildren('table') rows = tables[0].findChildren(['th', 'tr']) details = [] diff --git a/requirements_all.txt b/requirements_all.txt index 62a87fcc368..a131813edbd 100644 --- a/requirements_all.txt +++ b/requirements_all.txt @@ -180,9 +180,6 @@ lightify==1.0.3 # homeassistant.components.light.limitlessled limitlessled==1.0.0 -# homeassistant.components.sensor.swiss_hydrological_data -lxml==3.6.0 - # homeassistant.components.notify.message_bird messagebird==1.2.0