Rename via_hub to via_device (#24360)
* Rename via_hub to via_device * Fixed registry interactions
This commit is contained in:
1 parent
4921d35e70
commit
84e6813779
26 files changed
+96
-86
No files matched your search
@@ -51,4 +51,4 @@ async def test_aqara_gateway_setup(hass):
|
||||
assert device.name == 'Aqara Hub-1563'
|
||||
assert device.model == 'ZHWA11LM'
|
||||
assert device.sw_version == '1.4.7'
|
||||
assert device.hub_device_id is None
|
||||
assert device.via_device_id is None
|
||||
@@ -74,7 +74,7 @@ async def test_ecobee3_setup(hass):
|
||||
assert climate_device.name == 'HomeW'
|
||||
assert climate_device.model == 'ecobee3'
|
||||
assert climate_device.sw_version == '4.2.394'
|
||||
assert climate_device.hub_device_id is None
|
||||
assert climate_device.via_device_id is None
|
||||
|
||||
# Check that an attached sensor has its own device entity that
|
||||
# is linked to the bridge
|
||||
@@ -83,7 +83,7 @@ async def test_ecobee3_setup(hass):
|
||||
assert sensor_device.name == 'Kitchen'
|
||||
assert sensor_device.model == 'REMOTE SENSOR'
|
||||
assert sensor_device.sw_version == '1.0.0'
|
||||
assert sensor_device.hub_device_id == climate_device.id
|
||||
assert sensor_device.via_device_id == climate_device.id
|
||||
|
||||
|
||||
async def test_ecobee3_setup_from_cache(hass, hass_storage):
|
||||
|
||||
@@ -45,7 +45,7 @@ async def test_koogeek_ls1_setup(hass):
|
||||
assert device.name == 'Koogeek-LS1-20833F'
|
||||
assert device.model == 'LS1'
|
||||
assert device.sw_version == '2.2.15'
|
||||
assert device.hub_device_id is None
|
||||
assert device.via_device_id is None
|
||||
|
||||
|
||||
@pytest.mark.parametrize('failure_cls', [
|
||||
|
||||
@@ -38,4 +38,4 @@ async def test_lennox_e30_setup(hass):
|
||||
|
||||
# The fixture contains a single accessory - so its a single device
|
||||
# and no bridge
|
||||
assert device.hub_device_id is None
|
||||
assert device.via_device_id is None
|
||||
Reference in new issue
Block a user