mirror of
https://github.com/home-assistant/core.git
synced 2025-07-23 13:17:32 +00:00
commit
a37a3af126
@ -97,9 +97,11 @@ class ZWaveClimate(ZWaveDeviceEntity, ClimateDevice):
|
|||||||
self._current_temperature = self.get_value(
|
self._current_temperature = self.get_value(
|
||||||
class_id=zwave.const.COMMAND_CLASS_SENSOR_MULTILEVEL,
|
class_id=zwave.const.COMMAND_CLASS_SENSOR_MULTILEVEL,
|
||||||
label=['Temperature'], member='data')
|
label=['Temperature'], member='data')
|
||||||
self._unit = self.get_value(
|
device_unit = self.get_value(
|
||||||
class_id=zwave.const.COMMAND_CLASS_SENSOR_MULTILEVEL,
|
class_id=zwave.const.COMMAND_CLASS_SENSOR_MULTILEVEL,
|
||||||
label=['Temperature'], member='units')
|
label=['Temperature'], member='units')
|
||||||
|
if device_unit is not None:
|
||||||
|
self._unit = device_unit
|
||||||
|
|
||||||
# Fan Mode
|
# Fan Mode
|
||||||
self._current_fan_mode = self.get_value(
|
self._current_fan_mode = self.get_value(
|
||||||
|
@ -21,10 +21,11 @@ from homeassistant.config import load_yaml_config_file
|
|||||||
from homeassistant.const import (EVENT_HOMEASSISTANT_START, STATE_UNKNOWN,
|
from homeassistant.const import (EVENT_HOMEASSISTANT_START, STATE_UNKNOWN,
|
||||||
EVENT_HOMEASSISTANT_STOP, STATE_ON,
|
EVENT_HOMEASSISTANT_STOP, STATE_ON,
|
||||||
STATE_OFF, CONF_DEVICES, CONF_PLATFORM,
|
STATE_OFF, CONF_DEVICES, CONF_PLATFORM,
|
||||||
CONF_CUSTOMIZE, STATE_PLAYING, STATE_IDLE,
|
STATE_PLAYING, STATE_IDLE,
|
||||||
STATE_PAUSED, CONF_HOST)
|
STATE_PAUSED, CONF_HOST)
|
||||||
from homeassistant.core import HomeAssistant, callback
|
from homeassistant.core import HomeAssistant, callback
|
||||||
from homeassistant.helpers.entity import Entity
|
from homeassistant.helpers.entity import Entity
|
||||||
|
from homeassistant.helpers import customize
|
||||||
|
|
||||||
REQUIREMENTS = ['pyCEC==0.4.13']
|
REQUIREMENTS = ['pyCEC==0.4.13']
|
||||||
|
|
||||||
@ -299,8 +300,10 @@ def setup(hass: HomeAssistant, base_config):
|
|||||||
"""Called when new device is detected by HDMI network."""
|
"""Called when new device is detected by HDMI network."""
|
||||||
key = DOMAIN + '.' + device.name
|
key = DOMAIN + '.' + device.name
|
||||||
hass.data[key] = device
|
hass.data[key] = device
|
||||||
discovery.load_platform(hass, base_config.get(core.DOMAIN).get(
|
discovery.load_platform(
|
||||||
CONF_CUSTOMIZE, {}).get(key, {}).get(CONF_PLATFORM, platform),
|
hass,
|
||||||
|
customize.get_overrides(hass, core.DOMAIN, key).get(
|
||||||
|
CONF_PLATFORM, platform),
|
||||||
DOMAIN, discovered={ATTR_NEW: [key]},
|
DOMAIN, discovered={ATTR_NEW: [key]},
|
||||||
hass_config=base_config)
|
hass_config=base_config)
|
||||||
|
|
||||||
|
@ -14,7 +14,7 @@ from homeassistant.util import Throttle
|
|||||||
import homeassistant.helpers.config_validation as cv
|
import homeassistant.helpers.config_validation as cv
|
||||||
|
|
||||||
|
|
||||||
REQUIREMENTS = ['pynuki==1.2']
|
REQUIREMENTS = ['pynuki==1.2.1']
|
||||||
|
|
||||||
_LOGGER = logging.getLogger(__name__)
|
_LOGGER = logging.getLogger(__name__)
|
||||||
|
|
||||||
|
@ -237,7 +237,7 @@ def _setup_discovery(hass, config):
|
|||||||
_LOGGER.error("Unable to load MQTT discovery")
|
_LOGGER.error("Unable to load MQTT discovery")
|
||||||
return None
|
return None
|
||||||
|
|
||||||
success = discovery.start(hass, conf[CONF_DISCOVERY_PREFIX], config)
|
success = discovery.async_start(hass, conf[CONF_DISCOVERY_PREFIX], config)
|
||||||
|
|
||||||
return success
|
return success
|
||||||
|
|
||||||
|
@ -19,7 +19,7 @@ from homeassistant.util import Throttle
|
|||||||
from homeassistant.util.dt import now, parse_datetime
|
from homeassistant.util.dt import now, parse_datetime
|
||||||
import homeassistant.helpers.config_validation as cv
|
import homeassistant.helpers.config_validation as cv
|
||||||
|
|
||||||
REQUIREMENTS = ['myusps==1.0.2']
|
REQUIREMENTS = ['myusps==1.0.3']
|
||||||
|
|
||||||
_LOGGER = logging.getLogger(__name__)
|
_LOGGER = logging.getLogger(__name__)
|
||||||
|
|
||||||
|
@ -466,10 +466,9 @@ def async_check_ha_config_file(hass):
|
|||||||
import homeassistant.components.persistent_notification as pn
|
import homeassistant.components.persistent_notification as pn
|
||||||
|
|
||||||
proc = yield from asyncio.create_subprocess_exec(
|
proc = yield from asyncio.create_subprocess_exec(
|
||||||
sys.argv[0],
|
sys.executable, '-m', 'homeassistant', '--script',
|
||||||
'--script',
|
'check_config', '--config', hass.config.config_dir,
|
||||||
'check_config',
|
stdout=asyncio.subprocess.PIPE, loop=hass.loop)
|
||||||
stdout=asyncio.subprocess.PIPE)
|
|
||||||
# Wait for the subprocess exit
|
# Wait for the subprocess exit
|
||||||
(stdout_data, dummy) = yield from proc.communicate()
|
(stdout_data, dummy) = yield from proc.communicate()
|
||||||
result = yield from proc.wait()
|
result = yield from proc.wait()
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
"""Constants used by Home Assistant components."""
|
"""Constants used by Home Assistant components."""
|
||||||
MAJOR_VERSION = 0
|
MAJOR_VERSION = 0
|
||||||
MINOR_VERSION = 38
|
MINOR_VERSION = 38
|
||||||
PATCH_VERSION = '1'
|
PATCH_VERSION = '2'
|
||||||
__short_version__ = '{}.{}'.format(MAJOR_VERSION, MINOR_VERSION)
|
__short_version__ = '{}.{}'.format(MAJOR_VERSION, MINOR_VERSION)
|
||||||
__version__ = '{}.{}'.format(__short_version__, PATCH_VERSION)
|
__version__ = '{}.{}'.format(__short_version__, PATCH_VERSION)
|
||||||
REQUIRED_PYTHON_VER = (3, 4, 2)
|
REQUIRED_PYTHON_VER = (3, 4, 2)
|
||||||
|
@ -332,7 +332,7 @@ miflora==0.1.15
|
|||||||
mutagen==1.36.2
|
mutagen==1.36.2
|
||||||
|
|
||||||
# homeassistant.components.sensor.usps
|
# homeassistant.components.sensor.usps
|
||||||
myusps==1.0.2
|
myusps==1.0.3
|
||||||
|
|
||||||
# homeassistant.components.discovery
|
# homeassistant.components.discovery
|
||||||
netdisco==0.8.2
|
netdisco==0.8.2
|
||||||
@ -487,7 +487,7 @@ pynetgear==0.3.3
|
|||||||
pynetio==0.1.6
|
pynetio==0.1.6
|
||||||
|
|
||||||
# homeassistant.components.lock.nuki
|
# homeassistant.components.lock.nuki
|
||||||
pynuki==1.2
|
pynuki==1.2.1
|
||||||
|
|
||||||
# homeassistant.components.sensor.nut
|
# homeassistant.components.sensor.nut
|
||||||
pynut2==2.1.2
|
pynut2==2.1.2
|
||||||
|
Loading…
x
Reference in New Issue
Block a user