| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 6adb2b5 commit 7e8b83e
2 files changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -200,6 +200,7 @@ def _map_info(self, device_info: dict) -> dict: | |||
| 200 | 200 | "mac": basic_info["mac"], | |
| 201 | 201 | "hwId": basic_info.get("hw_id"), | |
| 202 | 202 | "oem_id": basic_info["oem_id"], | |
| 203 | + "device_id": basic_info["dev_id"], | ||
| 203 | 204 | } | |
| 204 | 205 | ||
| 205 | 206 | @property | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -55,6 +55,11 @@ def _get_subclasses(of_class): | |||
| 55 | 55 | ) | |
| 56 | 56 | ||
| 57 | 57 | ||
| 58 | + async def test_device_id(dev: Device): | ||
| 59 | + """Test all devices have a device id.""" | ||
| 60 | + assert dev.device_id | ||
| 61 | + | ||
| 62 | + | ||
| 58 | 63 | async def test_alias(dev): | |
| 59 | 64 | test_alias = "TEST1234" | |
| 60 | 65 | original = dev.alias | |
| Back | FazBrowse Home | New Git URL |
0 commit comments