1
0
mirror of https://github.com/home-assistant/core.git synced 2025-12-25 13:38:04 +00:00

Fix off_delay for zwave trigger sensors (#8864)

This commit is contained in:
John Arild Berentsen
2017-08-06 17:31:32 +02:00
committed by Andrey
parent 3723f67dc1
commit 99a20c845c
3 changed files with 17 additions and 7 deletions

View File

@@ -77,7 +77,8 @@ def test_trigger_sensor_value_changed(hass, mock_openzwave):
node = MockNode(
manufacturer_id='013c', product_type='0002', product_id='0002')
value = MockValue(data=False, node=node)
values = MockEntityValues(primary=value)
value_off_delay = MockValue(data=15, node=node)
values = MockEntityValues(primary=value, off_delay=value_off_delay)
device = zwave.get_device(node=node, values=values, node_config={})
assert not device.is_on