Merge pull request #24516 from home-assistant/rc

0.94.3
This commit is contained in:
Paulus Schoutsen 2019-06-12 23:15:23 -07:00 committed by GitHub
commit aa91211229
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
8 changed files with 22 additions and 9 deletions

View File

@ -45,7 +45,7 @@ homeassistant/components/cisco_ios/* @fbradyirl
homeassistant/components/cisco_mobility_express/* @fbradyirl homeassistant/components/cisco_mobility_express/* @fbradyirl
homeassistant/components/cisco_webex_teams/* @fbradyirl homeassistant/components/cisco_webex_teams/* @fbradyirl
homeassistant/components/ciscospark/* @fbradyirl homeassistant/components/ciscospark/* @fbradyirl
homeassistant/components/cloud/* @home-assistant/core homeassistant/components/cloud/* @home-assistant/cloud
homeassistant/components/cloudflare/* @ludeeus homeassistant/components/cloudflare/* @ludeeus
homeassistant/components/config/* @home-assistant/core homeassistant/components/config/* @home-assistant/core
homeassistant/components/configurator/* @home-assistant/core homeassistant/components/configurator/* @home-assistant/core

View File

@ -3,13 +3,13 @@
"name": "Cloud", "name": "Cloud",
"documentation": "https://www.home-assistant.io/components/cloud", "documentation": "https://www.home-assistant.io/components/cloud",
"requirements": [ "requirements": [
"hass-nabucasa==0.13" "hass-nabucasa==0.14"
], ],
"dependencies": [ "dependencies": [
"http", "http",
"webhook" "webhook"
], ],
"codeowners": [ "codeowners": [
"@home-assistant/core" "@home-assistant/cloud"
] ]
} }

View File

@ -9,7 +9,7 @@ from homeassistant.const import (
ATTR_BATTERY_LEVEL, ATTR_BATTERY_LEVEL,
) )
from homeassistant.components.device_tracker.const import ( from homeassistant.components.device_tracker.const import (
ENTITY_ID_FORMAT, ATTR_SOURCE_TYPE) ENTITY_ID_FORMAT, ATTR_SOURCE_TYPE, SOURCE_TYPE_GPS)
from homeassistant.components.device_tracker.config_entry import ( from homeassistant.components.device_tracker.config_entry import (
DeviceTrackerEntity DeviceTrackerEntity
) )
@ -127,7 +127,7 @@ class OwnTracksEntity(DeviceTrackerEntity, RestoreEntity):
@property @property
def source_type(self): def source_type(self):
"""Return the source type, eg gps or router, of the device.""" """Return the source type, eg gps or router, of the device."""
return self._data.get('source_type') return self._data.get('source_type', SOURCE_TYPE_GPS)
@property @property
def device_info(self): def device_info(self):

View File

@ -23,7 +23,7 @@ SUPPORTED_VOICES = [
"de-DE_BirgitVoice", "de-DE_BirgitVoice",
"de-DE_BirgitV2Voice", "de-DE_BirgitV2Voice",
"de-DE_DieterVoice", "de-DE_DieterVoice",
"de-DE_DieterV2Voice" "de-DE_DieterV2Voice",
"en-GB_KateVoice", "en-GB_KateVoice",
"en-US_AllisonVoice", "en-US_AllisonVoice",
"en-US_AllisonV2Voice", "en-US_AllisonV2Voice",

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 = 94 MINOR_VERSION = 94
PATCH_VERSION = '2' PATCH_VERSION = '3'
__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

@ -547,7 +547,7 @@ habitipy==0.2.0
hangups==0.4.9 hangups==0.4.9
# homeassistant.components.cloud # homeassistant.components.cloud
hass-nabucasa==0.13 hass-nabucasa==0.14
# homeassistant.components.mqtt # homeassistant.components.mqtt
hbmqtt==0.9.4 hbmqtt==0.9.4

View File

@ -136,7 +136,7 @@ ha-ffmpeg==2.0
hangups==0.4.9 hangups==0.4.9
# homeassistant.components.cloud # homeassistant.components.cloud
hass-nabucasa==0.13 hass-nabucasa==0.14
# homeassistant.components.mqtt # homeassistant.components.mqtt
hbmqtt==0.9.4 hbmqtt==0.9.4

View File

@ -411,6 +411,19 @@ async def test_location_update(hass, context):
"""Test the update of a location.""" """Test the update of a location."""
await send_message(hass, LOCATION_TOPIC, LOCATION_MESSAGE) await send_message(hass, LOCATION_TOPIC, LOCATION_MESSAGE)
assert_location_source_type(hass, 'gps')
assert_location_latitude(hass, LOCATION_MESSAGE['lat'])
assert_location_accuracy(hass, LOCATION_MESSAGE['acc'])
assert_location_state(hass, 'outer')
async def test_location_update_no_t_key(hass, context):
"""Test the update of a location when message does not contain 't'."""
message = LOCATION_MESSAGE.copy()
message.pop('t')
await send_message(hass, LOCATION_TOPIC, message)
assert_location_source_type(hass, 'gps')
assert_location_latitude(hass, LOCATION_MESSAGE['lat']) assert_location_latitude(hass, LOCATION_MESSAGE['lat'])
assert_location_accuracy(hass, LOCATION_MESSAGE['acc']) assert_location_accuracy(hass, LOCATION_MESSAGE['acc'])
assert_location_state(hass, 'outer') assert_location_state(hass, 'outer')