Merge pull request #23932 from home-assistant/rc

0.93.1
This commit is contained in:
Paulus Schoutsen 2019-05-17 08:03:45 +02:00 committed by GitHub
commit 7818c98c67
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
7 changed files with 27 additions and 28 deletions

View File

@ -159,7 +159,7 @@ jobs:
git config --global user.email "pvizeli@syshack.ch" git config --global user.email "pvizeli@syshack.ch"
git config --global credential.helper store git config --global credential.helper store
echo "https://$(githubToken):x-oauth-basic@github.com > $HOME\.git-credentials echo "https://$(githubToken):x-oauth-basic@github.com" > $HOME\.git-credentials
displayName: 'Install requirements' displayName: 'Install requirements'
- script: | - script: |
set -e set -e

View File

@ -53,7 +53,6 @@ TYPE_SENSOR = PREFIX_TYPES + 'SENSOR'
TYPE_DOOR = PREFIX_TYPES + 'DOOR' TYPE_DOOR = PREFIX_TYPES + 'DOOR'
TYPE_TV = PREFIX_TYPES + 'TV' TYPE_TV = PREFIX_TYPES + 'TV'
TYPE_SPEAKER = PREFIX_TYPES + 'SPEAKER' TYPE_SPEAKER = PREFIX_TYPES + 'SPEAKER'
TYPE_MEDIA = PREFIX_TYPES + 'MEDIA'
SERVICE_REQUEST_SYNC = 'request_sync' SERVICE_REQUEST_SYNC = 'request_sync'
HOMEGRAPH_URL = 'https://homegraph.googleapis.com/' HOMEGRAPH_URL = 'https://homegraph.googleapis.com/'
@ -89,7 +88,7 @@ DOMAIN_TO_GOOGLE_TYPES = {
input_boolean.DOMAIN: TYPE_SWITCH, input_boolean.DOMAIN: TYPE_SWITCH,
light.DOMAIN: TYPE_LIGHT, light.DOMAIN: TYPE_LIGHT,
lock.DOMAIN: TYPE_LOCK, lock.DOMAIN: TYPE_LOCK,
media_player.DOMAIN: TYPE_MEDIA, media_player.DOMAIN: TYPE_SWITCH,
scene.DOMAIN: TYPE_SCENE, scene.DOMAIN: TYPE_SCENE,
script.DOMAIN: TYPE_SCENE, script.DOMAIN: TYPE_SCENE,
switch.DOMAIN: TYPE_SWITCH, switch.DOMAIN: TYPE_SWITCH,

View File

@ -55,8 +55,7 @@ def setup_platform(hass, config, add_entities, discovery_info=None):
_LOGGER.warning( _LOGGER.warning(
"The honeywell component is deprecated for EU (i.e. non-US) systems, " "The honeywell component is deprecated for EU (i.e. non-US) systems, "
"this functionality will be removed in version 0.96.") "this functionality will be removed in version 0.96. "
_LOGGER.warning(
"Please switch to the evohome component, " "Please switch to the evohome component, "
"see: https://home-assistant.io/components/evohome") "see: https://home-assistant.io/components/evohome")

View File

@ -164,27 +164,28 @@ class ONVIFHassCamera(Camera):
system_date = dt_util.utcnow() system_date = dt_util.utcnow()
device_time = await devicemgmt.GetSystemDateAndTime() device_time = await devicemgmt.GetSystemDateAndTime()
cdate = device_time.UTCDateTime if device_time:
cam_date = dt.datetime(cdate.Date.Year, cdate.Date.Month, cdate = device_time.UTCDateTime
cdate.Date.Day, cdate.Time.Hour, cam_date = dt.datetime(cdate.Date.Year, cdate.Date.Month,
cdate.Time.Minute, cdate.Time.Second, cdate.Date.Day, cdate.Time.Hour,
0, dt_util.UTC) cdate.Time.Minute, cdate.Time.Second,
0, dt_util.UTC)
_LOGGER.debug("Camera date/time: %s", _LOGGER.debug("Camera date/time: %s",
cam_date) cam_date)
_LOGGER.debug("System date/time: %s", _LOGGER.debug("System date/time: %s",
system_date) system_date)
dt_diff = cam_date - system_date dt_diff = cam_date - system_date
dt_diff_seconds = dt_diff.total_seconds() dt_diff_seconds = dt_diff.total_seconds()
if dt_diff_seconds > 5: if dt_diff_seconds > 5:
_LOGGER.warning("The date/time on the camera is '%s', " _LOGGER.warning("The date/time on the camera is '%s', "
"which is different from the system '%s', " "which is different from the system '%s', "
"this could lead to authentication issues", "this could lead to authentication issues",
cam_date, cam_date,
system_date) system_date)
_LOGGER.debug("Obtaining input uri") _LOGGER.debug("Obtaining input uri")

View File

@ -2,7 +2,7 @@
"""Constants used by Home Assistant components.""" """Constants used by Home Assistant components."""
MAJOR_VERSION = 0 MAJOR_VERSION = 0
MINOR_VERSION = 93 MINOR_VERSION = 93
PATCH_VERSION = '0' PATCH_VERSION = '1'
__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, 5, 3) REQUIRED_PYTHON_VER = (3, 5, 3)

View File

@ -147,7 +147,7 @@ DEMO_DEVICES = [{
'action.devices.traits.Modes' 'action.devices.traits.Modes'
], ],
'type': 'type':
'action.devices.types.MEDIA', 'action.devices.types.SWITCH',
'willReportState': 'willReportState':
False False
}, { }, {
@ -162,7 +162,7 @@ DEMO_DEVICES = [{
'action.devices.traits.Modes' 'action.devices.traits.Modes'
], ],
'type': 'type':
'action.devices.types.MEDIA', 'action.devices.types.SWITCH',
'willReportState': 'willReportState':
False False
}, { }, {
@ -171,7 +171,7 @@ DEMO_DEVICES = [{
'name': 'Lounge room' 'name': 'Lounge room'
}, },
'traits': ['action.devices.traits.OnOff', 'action.devices.traits.Modes'], 'traits': ['action.devices.traits.OnOff', 'action.devices.traits.Modes'],
'type': 'action.devices.types.MEDIA', 'type': 'action.devices.types.SWITCH',
'willReportState': False 'willReportState': False
}, { }, {
'id': 'id':
@ -182,7 +182,7 @@ DEMO_DEVICES = [{
'traits': 'traits':
['action.devices.traits.OnOff', 'action.devices.traits.Volume'], ['action.devices.traits.OnOff', 'action.devices.traits.Volume'],
'type': 'type':
'action.devices.types.MEDIA', 'action.devices.types.SWITCH',
'willReportState': 'willReportState':
False False
}, { }, {

View File

@ -686,7 +686,7 @@ async def test_device_class_cover(hass, device_class, google_type):
@pytest.mark.parametrize("device_class,google_type", [ @pytest.mark.parametrize("device_class,google_type", [
('non_existing_class', 'action.devices.types.MEDIA'), ('non_existing_class', 'action.devices.types.SWITCH'),
('speaker', 'action.devices.types.SPEAKER'), ('speaker', 'action.devices.types.SPEAKER'),
('tv', 'action.devices.types.TV'), ('tv', 'action.devices.types.TV'),
]) ])