| 1 | """Test pydeCONZ configuration tool.""" |
| 2 | |
| 3 | DATA = { |
| 4 | "etag": "26839cb118f5bf7ba1f2108256644010", |
| 5 | "hascolor": False, |
| 6 | "lastannounced": None, |
| 7 | "lastseen": "2020-11-22T11:27Z", |
| 8 | "manufacturername": "dresden elektronik", |
| 9 | "modelid": "ConBee II", |
| 10 | "name": "Configuration tool 1", |
| 11 | "state": {"reachable": True}, |
| 12 | "swversion": "0x264a0700", |
| 13 | "type": "Configuration tool", |
| 14 | "uniqueid": "xx:xx:xx:xx:xx:xx:xx:xx-01", |
| 15 | } |
| 16 | |
| 17 | |
| 18 | async def test_light_configuration_tool(deconz_light): |
| 19 | """Verify that configuration tool work.""" |
| 20 | configuration_tool = await deconz_light(DATA) |
| 21 | |
| 22 | assert configuration_tool.state is None |
| 23 | assert configuration_tool.reachable is True |
| 24 | |
| 25 | assert configuration_tool.deconz_id == "/lights/0" |
| 26 | assert configuration_tool.etag == "26839cb118f5bf7ba1f2108256644010" |
| 27 | assert configuration_tool.manufacturer == "dresden elektronik" |
| 28 | assert configuration_tool.model_id == "ConBee II" |
| 29 | assert configuration_tool.name == "Configuration tool 1" |
| 30 | assert configuration_tool.software_version == "0x264a0700" |
| 31 | assert configuration_tool.type == "Configuration tool" |
| 32 | assert configuration_tool.unique_id == "xx:xx:xx:xx:xx:xx:xx:xx-01" |