Add model to august device_info (#32187)

* Add model to august device_info

* Address review comments from PR#32125

* Fix test name
This commit is contained in:
J. Nick Koston 2020-02-25 16:34:31 -10:00 committed by GitHub
parent 58de7fe9a3
commit 4c33a9d732
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
9 changed files with 65 additions and 22 deletions

View file

@ -17,6 +17,21 @@ from tests.components.august.mocks import (
)
async def test_lock_device_registry(hass):
"""Test creation of a lock with doorsense and bridge ands up in the registry."""
lock_one = await _mock_doorsense_enabled_august_lock_detail(hass)
lock_details = [lock_one]
await _create_august_with_devices(hass, lock_details)
device_registry = await hass.helpers.device_registry.async_get_registry()
reg_device = device_registry.async_get_device(
identifiers={("august", "online_with_doorsense")}, connections=set()
)
assert "AUG-MD01" == reg_device.model
assert "undefined-4.3.0-1.8.14" == reg_device.sw_version
async def test_one_lock_operation(hass):
"""Test creation of a lock with doorsense and bridge."""
lock_one = await _mock_doorsense_enabled_august_lock_detail(hass)