mirror of
https://github.com/python-kasa/python-kasa.git
synced 2024-12-22 19:23:34 +00:00
Fix smartcam missing device id (#1343)
This commit is contained in:
parent
6adb2b5c28
commit
7e8b83edb9
@ -200,6 +200,7 @@ class SmartCamDevice(SmartDevice):
|
|||||||
"mac": basic_info["mac"],
|
"mac": basic_info["mac"],
|
||||||
"hwId": basic_info.get("hw_id"),
|
"hwId": basic_info.get("hw_id"),
|
||||||
"oem_id": basic_info["oem_id"],
|
"oem_id": basic_info["oem_id"],
|
||||||
|
"device_id": basic_info["dev_id"],
|
||||||
}
|
}
|
||||||
|
|
||||||
@property
|
@property
|
||||||
|
@ -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):
|
async def test_alias(dev):
|
||||||
test_alias = "TEST1234"
|
test_alias = "TEST1234"
|
||||||
original = dev.alias
|
original = dev.alias
|
||||||
|
Loading…
Reference in New Issue
Block a user