1
0
mirror of https://github.com/home-assistant/core.git synced 2025-12-24 12:59:34 +00:00

deCONZ normalizes cover values to follow zigbee spec (#26240)

This commit is contained in:
Robert Svensson
2019-08-27 21:06:14 +02:00
committed by GitHub
parent d9ae63e239
commit 1f2e0d3949
2 changed files with 8 additions and 42 deletions

View File

@@ -16,7 +16,7 @@ SUPPORTED_COVERS = {
"id": "Cover 1 id",
"name": "Cover 1 name",
"type": "Level controllable output",
"state": {"bri": 255, "reachable": True},
"state": {"bri": 255, "on": False, "reachable": True},
"modelid": "Not zigbee spec",
"uniqueid": "00:00:00:00:00:00:00:00-00",
},
@@ -24,7 +24,7 @@ SUPPORTED_COVERS = {
"id": "Cover 2 id",
"name": "Cover 2 name",
"type": "Window covering device",
"state": {"bri": 255, "reachable": True},
"state": {"bri": 255, "on": True, "reachable": True},
"modelid": "lumi.curtain",
},
}
@@ -107,7 +107,7 @@ async def test_cover(hass):
cover_1 = hass.states.get("cover.cover_1_name")
assert cover_1 is not None
assert cover_1.state == "closed"
assert cover_1.state == "open"
gateway.api.lights["1"].async_update({})