Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions homeassistant/components/volvo/icons.json
Original file line number Diff line number Diff line change
Expand Up @@ -283,6 +283,14 @@
"default": "mdi:alarm-light"
}
},
"device_tracker": {
"location": {
"default": "mdi:car",
"state": {
"not_home": "mdi:car-arrow-right"
}
}
},
"sensor": {
"availability": {
"default": "mdi:car-connected"
Expand Down
5 changes: 5 additions & 0 deletions homeassistant/components/volvo/strings.json
Original file line number Diff line number Diff line change
Expand Up @@ -210,6 +210,11 @@
"name": "Honk & flash"
}
},
"device_tracker": {
"location": {
"name": "Location"
}
},
"lock": {
"lock": {
"name": "[%key:component::lock::title%]"
Expand Down
48 changes: 24 additions & 24 deletions tests/components/volvo/snapshots/test_device_tracker.ambr
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# serializer version: 1
# name: test_device_tracker[ex30_2024][device_tracker.volvo_ex30_none-entry]
# name: test_device_tracker[ex30_2024][device_tracker.volvo_ex30_location-entry]
EntityRegistryEntrySnapshot({
'aliases': set({
}),
Expand All @@ -12,7 +12,7 @@
'disabled_by': None,
'domain': 'device_tracker',
'entity_category': <EntityCategory.DIAGNOSTIC: 'diagnostic'>,
'entity_id': 'device_tracker.volvo_ex30_none',
'entity_id': 'device_tracker.volvo_ex30_location',
'has_entity_name': True,
'hidden_by': None,
'icon': None,
Expand All @@ -24,7 +24,7 @@
}),
'original_device_class': None,
'original_icon': None,
'original_name': None,
'original_name': 'Location',
'platform': 'volvo',
'previous_unique_id': None,
'suggested_object_id': None,
Expand All @@ -34,24 +34,24 @@
'unit_of_measurement': None,
})
# ---
# name: test_device_tracker[ex30_2024][device_tracker.volvo_ex30_none-state]
# name: test_device_tracker[ex30_2024][device_tracker.volvo_ex30_location-state]
StateSnapshot({
'attributes': ReadOnlyDict({
'friendly_name': 'Volvo EX30 None',
'friendly_name': 'Volvo EX30 Location',
'gps_accuracy': 0,
'latitude': 57.72537482589284,
'longitude': 11.849843629550225,
'source_type': <SourceType.GPS: 'gps'>,
}),
'context': <ANY>,
'entity_id': 'device_tracker.volvo_ex30_none',
'entity_id': 'device_tracker.volvo_ex30_location',
'last_changed': <ANY>,
'last_reported': <ANY>,
'last_updated': <ANY>,
'state': 'not_home',
})
# ---
# name: test_device_tracker[s90_diesel_2018][device_tracker.volvo_s90_none-entry]
# name: test_device_tracker[s90_diesel_2018][device_tracker.volvo_s90_location-entry]
EntityRegistryEntrySnapshot({
'aliases': set({
}),
Expand All @@ -64,7 +64,7 @@
'disabled_by': None,
'domain': 'device_tracker',
'entity_category': <EntityCategory.DIAGNOSTIC: 'diagnostic'>,
'entity_id': 'device_tracker.volvo_s90_none',
'entity_id': 'device_tracker.volvo_s90_location',
'has_entity_name': True,
'hidden_by': None,
'icon': None,
Expand All @@ -76,7 +76,7 @@
}),
'original_device_class': None,
'original_icon': None,
'original_name': None,
'original_name': 'Location',
'platform': 'volvo',
'previous_unique_id': None,
'suggested_object_id': None,
Expand All @@ -86,24 +86,24 @@
'unit_of_measurement': None,
})
# ---
# name: test_device_tracker[s90_diesel_2018][device_tracker.volvo_s90_none-state]
# name: test_device_tracker[s90_diesel_2018][device_tracker.volvo_s90_location-state]
StateSnapshot({
'attributes': ReadOnlyDict({
'friendly_name': 'Volvo S90 None',
'friendly_name': 'Volvo S90 Location',
'gps_accuracy': 0,
'latitude': 57.72537482589284,
'longitude': 11.849843629550225,
'source_type': <SourceType.GPS: 'gps'>,
}),
'context': <ANY>,
'entity_id': 'device_tracker.volvo_s90_none',
'entity_id': 'device_tracker.volvo_s90_location',
'last_changed': <ANY>,
'last_reported': <ANY>,
'last_updated': <ANY>,
'state': 'not_home',
})
# ---
# name: test_device_tracker[xc40_electric_2024][device_tracker.volvo_xc40_none-entry]
# name: test_device_tracker[xc40_electric_2024][device_tracker.volvo_xc40_location-entry]
EntityRegistryEntrySnapshot({
'aliases': set({
}),
Expand All @@ -116,7 +116,7 @@
'disabled_by': None,
'domain': 'device_tracker',
'entity_category': <EntityCategory.DIAGNOSTIC: 'diagnostic'>,
'entity_id': 'device_tracker.volvo_xc40_none',
'entity_id': 'device_tracker.volvo_xc40_location',
'has_entity_name': True,
'hidden_by': None,
'icon': None,
Expand All @@ -128,7 +128,7 @@
}),
'original_device_class': None,
'original_icon': None,
'original_name': None,
'original_name': 'Location',
'platform': 'volvo',
'previous_unique_id': None,
'suggested_object_id': None,
Expand All @@ -138,24 +138,24 @@
'unit_of_measurement': None,
})
# ---
# name: test_device_tracker[xc40_electric_2024][device_tracker.volvo_xc40_none-state]
# name: test_device_tracker[xc40_electric_2024][device_tracker.volvo_xc40_location-state]
StateSnapshot({
'attributes': ReadOnlyDict({
'friendly_name': 'Volvo XC40 None',
'friendly_name': 'Volvo XC40 Location',
'gps_accuracy': 0,
'latitude': 57.72537482589284,
'longitude': 11.849843629550225,
'source_type': <SourceType.GPS: 'gps'>,
}),
'context': <ANY>,
'entity_id': 'device_tracker.volvo_xc40_none',
'entity_id': 'device_tracker.volvo_xc40_location',
'last_changed': <ANY>,
'last_reported': <ANY>,
'last_updated': <ANY>,
'state': 'not_home',
})
# ---
# name: test_device_tracker[xc90_petrol_2019][device_tracker.volvo_xc90_none-entry]
# name: test_device_tracker[xc90_petrol_2019][device_tracker.volvo_xc90_location-entry]
EntityRegistryEntrySnapshot({
'aliases': set({
}),
Expand All @@ -168,7 +168,7 @@
'disabled_by': None,
'domain': 'device_tracker',
'entity_category': <EntityCategory.DIAGNOSTIC: 'diagnostic'>,
'entity_id': 'device_tracker.volvo_xc90_none',
'entity_id': 'device_tracker.volvo_xc90_location',
'has_entity_name': True,
'hidden_by': None,
'icon': None,
Expand All @@ -180,7 +180,7 @@
}),
'original_device_class': None,
'original_icon': None,
'original_name': None,
'original_name': 'Location',
'platform': 'volvo',
'previous_unique_id': None,
'suggested_object_id': None,
Expand All @@ -190,17 +190,17 @@
'unit_of_measurement': None,
})
# ---
# name: test_device_tracker[xc90_petrol_2019][device_tracker.volvo_xc90_none-state]
# name: test_device_tracker[xc90_petrol_2019][device_tracker.volvo_xc90_location-state]
StateSnapshot({
'attributes': ReadOnlyDict({
'friendly_name': 'Volvo XC90 None',
'friendly_name': 'Volvo XC90 Location',
'gps_accuracy': 0,
'latitude': 57.72537482589284,
'longitude': 11.849843629550225,
'source_type': <SourceType.GPS: 'gps'>,
}),
'context': <ANY>,
'entity_id': 'device_tracker.volvo_xc90_none',
'entity_id': 'device_tracker.volvo_xc90_location',
'last_changed': <ANY>,
'last_reported': <ANY>,
'last_updated': <ANY>,
Expand Down
Loading