diff --git a/homeassistant/components/sensor/qnap.py b/homeassistant/components/sensor/qnap.py index 22f8d4c37c0..29eb8cd6749 100644 --- a/homeassistant/components/sensor/qnap.py +++ b/homeassistant/components/sensor/qnap.py @@ -17,7 +17,7 @@ from homeassistant.const import ( from homeassistant.util import Throttle import homeassistant.helpers.config_validation as cv -REQUIREMENTS = ['qnapstats==0.2.6'] +REQUIREMENTS = ['qnapstats==0.2.7'] _LOGGER = logging.getLogger(__name__) @@ -173,7 +173,7 @@ class QNAPStatsAPI: protocol = "https" if config.get(CONF_SSL) else "http" self._api = QNAPStats( - protocol + "://" + config.get(CONF_HOST), + '{}://{}'.format(protocol, config.get(CONF_HOST)), config.get(CONF_PORT), config.get(CONF_USERNAME), config.get(CONF_PASSWORD), diff --git a/requirements_all.txt b/requirements_all.txt index db244cc8cfb..49fc3b42466 100644 --- a/requirements_all.txt +++ b/requirements_all.txt @@ -1217,7 +1217,7 @@ pyxeoma==1.4.0 pyzabbix==0.7.4 # homeassistant.components.sensor.qnap -qnapstats==0.2.6 +qnapstats==0.2.7 # homeassistant.components.rachio rachiopy==0.1.3