Always return lockState == LOCKED when handling Alexa.LockController (#12328)

This commit is contained in:
Richard Lucas authored and Paulus Schoutsen committed 2018-02-11 23:38:39 -08:00
1 parent 2a0bd8d330
commit a06000c76d
2 files changed
+17 -2

No files matched your search

+7 -1
View File
@@ -401,11 +401,17 @@ def test_lock(hass):
assert appliance['friendlyName'] == "Test lock"
assert_endpoint_capabilities(appliance, 'Alexa.LockController')
yield from assert_request_calls_service(
_, msg = yield from assert_request_calls_service(
'Alexa.LockController', 'Lock', 'lock#test',
'lock.lock',
hass)
# always return LOCKED for now
properties = msg['context']['properties'][0]
assert properties['name'] == 'lockState'
assert properties['namespace'] == 'Alexa.LockController'
assert properties['value'] == 'LOCKED'
@asyncio.coroutine
def test_media_player(hass):