Fix smartcam missing device id (#1343)

This commit is contained in:
Steven B. 2024-12-06 09:40:44 +00:00 committed by Steven B
parent 6adb2b5c28
commit 7e8b83edb9
No known key found for this signature in database
GPG Key ID: 6D5B46B3679F2A43
2 changed files with 6 additions and 0 deletions

View File

@ -200,6 +200,7 @@ class SmartCamDevice(SmartDevice):
"mac": basic_info["mac"],
"hwId": basic_info.get("hw_id"),
"oem_id": basic_info["oem_id"],
"device_id": basic_info["dev_id"],
}
@property

View File

@ -55,6 +55,11 @@ device_classes = pytest.mark.parametrize(
)
async def test_device_id(dev: Device):
"""Test all devices have a device id."""
assert dev.device_id
async def test_alias(dev):
test_alias = "TEST1234"
original = dev.alias