mirror of
https://github.com/home-assistant/core.git
synced 2025-07-19 19:27:45 +00:00
commit
aa91211229
@ -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
|
||||
|
@ -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"
|
||||
]
|
||||
}
|
||||
|
@ -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):
|
||||
|
@ -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",
|
||||
|
@ -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)
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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')
|
||||
|
Loading…
x
Reference in New Issue
Block a user