diff --git a/homeassistant/components/climate/zwave.py b/homeassistant/components/climate/zwave.py index 545d3b41432..e74d5d575a3 100755 --- a/homeassistant/components/climate/zwave.py +++ b/homeassistant/components/climate/zwave.py @@ -97,9 +97,11 @@ class ZWaveClimate(ZWaveDeviceEntity, ClimateDevice): self._current_temperature = self.get_value( class_id=zwave.const.COMMAND_CLASS_SENSOR_MULTILEVEL, label=['Temperature'], member='data') - self._unit = self.get_value( + device_unit = self.get_value( class_id=zwave.const.COMMAND_CLASS_SENSOR_MULTILEVEL, label=['Temperature'], member='units') + if device_unit is not None: + self._unit = device_unit # Fan Mode self._current_fan_mode = self.get_value( diff --git a/homeassistant/components/hdmi_cec.py b/homeassistant/components/hdmi_cec.py index a154bdf609e..5ed3b688672 100644 --- a/homeassistant/components/hdmi_cec.py +++ b/homeassistant/components/hdmi_cec.py @@ -21,10 +21,11 @@ from homeassistant.config import load_yaml_config_file from homeassistant.const import (EVENT_HOMEASSISTANT_START, STATE_UNKNOWN, EVENT_HOMEASSISTANT_STOP, STATE_ON, STATE_OFF, CONF_DEVICES, CONF_PLATFORM, - CONF_CUSTOMIZE, STATE_PLAYING, STATE_IDLE, + STATE_PLAYING, STATE_IDLE, STATE_PAUSED, CONF_HOST) from homeassistant.core import HomeAssistant, callback from homeassistant.helpers.entity import Entity +from homeassistant.helpers import customize REQUIREMENTS = ['pyCEC==0.4.13'] @@ -299,10 +300,12 @@ def setup(hass: HomeAssistant, base_config): """Called when new device is detected by HDMI network.""" key = DOMAIN + '.' + device.name hass.data[key] = device - discovery.load_platform(hass, base_config.get(core.DOMAIN).get( - CONF_CUSTOMIZE, {}).get(key, {}).get(CONF_PLATFORM, platform), - DOMAIN, discovered={ATTR_NEW: [key]}, - hass_config=base_config) + discovery.load_platform( + hass, + customize.get_overrides(hass, core.DOMAIN, key).get( + CONF_PLATFORM, platform), + DOMAIN, discovered={ATTR_NEW: [key]}, + hass_config=base_config) def _shutdown(call): hdmi_network.stop() diff --git a/homeassistant/components/lock/nuki.py b/homeassistant/components/lock/nuki.py index b167c00b9bc..33058c86239 100644 --- a/homeassistant/components/lock/nuki.py +++ b/homeassistant/components/lock/nuki.py @@ -14,7 +14,7 @@ from homeassistant.util import Throttle import homeassistant.helpers.config_validation as cv -REQUIREMENTS = ['pynuki==1.2'] +REQUIREMENTS = ['pynuki==1.2.1'] _LOGGER = logging.getLogger(__name__) diff --git a/homeassistant/components/mqtt/__init__.py b/homeassistant/components/mqtt/__init__.py index e880be177e8..79c154ef223 100644 --- a/homeassistant/components/mqtt/__init__.py +++ b/homeassistant/components/mqtt/__init__.py @@ -237,7 +237,7 @@ def _setup_discovery(hass, config): _LOGGER.error("Unable to load MQTT discovery") return None - success = discovery.start(hass, conf[CONF_DISCOVERY_PREFIX], config) + success = discovery.async_start(hass, conf[CONF_DISCOVERY_PREFIX], config) return success diff --git a/homeassistant/components/sensor/usps.py b/homeassistant/components/sensor/usps.py index 680b4e4142d..5c2bb84daa1 100644 --- a/homeassistant/components/sensor/usps.py +++ b/homeassistant/components/sensor/usps.py @@ -19,7 +19,7 @@ from homeassistant.util import Throttle from homeassistant.util.dt import now, parse_datetime import homeassistant.helpers.config_validation as cv -REQUIREMENTS = ['myusps==1.0.2'] +REQUIREMENTS = ['myusps==1.0.3'] _LOGGER = logging.getLogger(__name__) diff --git a/homeassistant/config.py b/homeassistant/config.py index 101c1a1dc87..27b9d2956e8 100644 --- a/homeassistant/config.py +++ b/homeassistant/config.py @@ -466,10 +466,9 @@ def async_check_ha_config_file(hass): import homeassistant.components.persistent_notification as pn proc = yield from asyncio.create_subprocess_exec( - sys.argv[0], - '--script', - 'check_config', - stdout=asyncio.subprocess.PIPE) + sys.executable, '-m', 'homeassistant', '--script', + 'check_config', '--config', hass.config.config_dir, + stdout=asyncio.subprocess.PIPE, loop=hass.loop) # Wait for the subprocess exit (stdout_data, dummy) = yield from proc.communicate() result = yield from proc.wait() diff --git a/homeassistant/const.py b/homeassistant/const.py index 2cbaf395c39..44438fa92d4 100644 --- a/homeassistant/const.py +++ b/homeassistant/const.py @@ -2,7 +2,7 @@ """Constants used by Home Assistant components.""" MAJOR_VERSION = 0 MINOR_VERSION = 38 -PATCH_VERSION = '1' +PATCH_VERSION = '2' __short_version__ = '{}.{}'.format(MAJOR_VERSION, MINOR_VERSION) __version__ = '{}.{}'.format(__short_version__, PATCH_VERSION) REQUIRED_PYTHON_VER = (3, 4, 2) diff --git a/requirements_all.txt b/requirements_all.txt index 2303b7926c8..527e9a17f54 100755 --- a/requirements_all.txt +++ b/requirements_all.txt @@ -332,7 +332,7 @@ miflora==0.1.15 mutagen==1.36.2 # homeassistant.components.sensor.usps -myusps==1.0.2 +myusps==1.0.3 # homeassistant.components.discovery netdisco==0.8.2 @@ -487,7 +487,7 @@ pynetgear==0.3.3 pynetio==0.1.6 # homeassistant.components.lock.nuki -pynuki==1.2 +pynuki==1.2.1 # homeassistant.components.sensor.nut pynut2==2.1.2