1
0
mirror of https://github.com/home-assistant/core.git synced 2025-12-24 21:06:19 +00:00

Rename via_hub to via_device (#24360)

* Rename via_hub to via_device

* Fixed registry interactions
This commit is contained in:
Penny Wood
2019-06-11 00:10:44 +08:00
committed by Paulus Schoutsen
parent 4921d35e70
commit 84e6813779
26 changed files with 96 additions and 86 deletions

View File

@@ -693,7 +693,7 @@ async def test_entity_device_info_with_hub(hass, mqtt_mock):
'state_topic': 'test-topic',
'device': {
'identifiers': ['helloworld'],
'via_hub': 'hub-id',
'via_device': 'hub-id',
},
'unique_id': 'veryunique'
})
@@ -702,4 +702,4 @@ async def test_entity_device_info_with_hub(hass, mqtt_mock):
device = registry.async_get_device({('mqtt', 'helloworld')}, set())
assert device is not None
assert device.hub_device_id == hub.id
assert device.via_device_id == hub.id