diff --git a/CODEOWNERS b/CODEOWNERS index 59bd8c31af1..636c1f5587e 100644 --- a/CODEOWNERS +++ b/CODEOWNERS @@ -45,7 +45,7 @@ homeassistant/components/cisco_ios/* @fbradyirl homeassistant/components/cisco_mobility_express/* @fbradyirl homeassistant/components/cisco_webex_teams/* @fbradyirl homeassistant/components/ciscospark/* @fbradyirl -homeassistant/components/cloud/* @home-assistant/core +homeassistant/components/cloud/* @home-assistant/cloud homeassistant/components/cloudflare/* @ludeeus homeassistant/components/config/* @home-assistant/core homeassistant/components/configurator/* @home-assistant/core diff --git a/homeassistant/components/cloud/manifest.json b/homeassistant/components/cloud/manifest.json index 982b51133a5..1a4511c8c88 100644 --- a/homeassistant/components/cloud/manifest.json +++ b/homeassistant/components/cloud/manifest.json @@ -3,13 +3,13 @@ "name": "Cloud", "documentation": "https://www.home-assistant.io/components/cloud", "requirements": [ - "hass-nabucasa==0.13" + "hass-nabucasa==0.14" ], "dependencies": [ "http", "webhook" ], "codeowners": [ - "@home-assistant/core" + "@home-assistant/cloud" ] } diff --git a/homeassistant/components/owntracks/device_tracker.py b/homeassistant/components/owntracks/device_tracker.py index 742b7c34435..b573e390a12 100644 --- a/homeassistant/components/owntracks/device_tracker.py +++ b/homeassistant/components/owntracks/device_tracker.py @@ -9,7 +9,7 @@ from homeassistant.const import ( ATTR_BATTERY_LEVEL, ) 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 ( DeviceTrackerEntity ) @@ -127,7 +127,7 @@ class OwnTracksEntity(DeviceTrackerEntity, RestoreEntity): @property def source_type(self): """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 def device_info(self): diff --git a/homeassistant/components/watson_tts/tts.py b/homeassistant/components/watson_tts/tts.py index be60908d096..552083854a2 100644 --- a/homeassistant/components/watson_tts/tts.py +++ b/homeassistant/components/watson_tts/tts.py @@ -23,7 +23,7 @@ SUPPORTED_VOICES = [ "de-DE_BirgitVoice", "de-DE_BirgitV2Voice", "de-DE_DieterVoice", - "de-DE_DieterV2Voice" + "de-DE_DieterV2Voice", "en-GB_KateVoice", "en-US_AllisonVoice", "en-US_AllisonV2Voice", diff --git a/homeassistant/const.py b/homeassistant/const.py index fc0d248de9f..c4575ee5108 100644 --- a/homeassistant/const.py +++ b/homeassistant/const.py @@ -2,7 +2,7 @@ """Constants used by Home Assistant components.""" MAJOR_VERSION = 0 MINOR_VERSION = 94 -PATCH_VERSION = '2' +PATCH_VERSION = '3' __short_version__ = '{}.{}'.format(MAJOR_VERSION, MINOR_VERSION) __version__ = '{}.{}'.format(__short_version__, PATCH_VERSION) REQUIRED_PYTHON_VER = (3, 5, 3) diff --git a/requirements_all.txt b/requirements_all.txt index e097b075833..ba2b91f0aca 100644 --- a/requirements_all.txt +++ b/requirements_all.txt @@ -547,7 +547,7 @@ habitipy==0.2.0 hangups==0.4.9 # homeassistant.components.cloud -hass-nabucasa==0.13 +hass-nabucasa==0.14 # homeassistant.components.mqtt hbmqtt==0.9.4 diff --git a/requirements_test_all.txt b/requirements_test_all.txt index 42d29717037..f87f5890dd7 100644 --- a/requirements_test_all.txt +++ b/requirements_test_all.txt @@ -136,7 +136,7 @@ ha-ffmpeg==2.0 hangups==0.4.9 # homeassistant.components.cloud -hass-nabucasa==0.13 +hass-nabucasa==0.14 # homeassistant.components.mqtt hbmqtt==0.9.4 diff --git a/tests/components/owntracks/test_device_tracker.py b/tests/components/owntracks/test_device_tracker.py index 7d8d48de586..5f2bda5957a 100644 --- a/tests/components/owntracks/test_device_tracker.py +++ b/tests/components/owntracks/test_device_tracker.py @@ -411,6 +411,19 @@ async def test_location_update(hass, context): """Test the update of a location.""" 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_accuracy(hass, LOCATION_MESSAGE['acc']) assert_location_state(hass, 'outer')