Typing error and update test (#6757)

This commit is contained in:
John Arild Berentsen 2017-03-24 07:53:59 +01:00 committed by Paulus Schoutsen
parent 82c599a749
commit ee6c9ab6a9
2 changed files with 5 additions and 5 deletions

View File

@ -53,8 +53,8 @@ LOCK_ALARM_TYPE = {
'9': 'Deadbolt Jammed', '9': 'Deadbolt Jammed',
'18': 'Locked with Keypad by user ', '18': 'Locked with Keypad by user ',
'19': 'Unlocked with Keypad by user ', '19': 'Unlocked with Keypad by user ',
'21': 'Manually Locked by ', '21': 'Manually Locked ',
'22': 'Manually Unlocked by Key or Inside thumb turn', '22': 'Manually Unlocked ',
'24': 'Locked by RF', '24': 'Locked by RF',
'25': 'Unlocked by RF', '25': 'Unlocked by RF',
'27': 'Auto re-lock', '27': 'Auto re-lock',
@ -69,8 +69,8 @@ LOCK_ALARM_TYPE = {
} }
MANUAL_LOCK_ALARM_LEVEL = { MANUAL_LOCK_ALARM_LEVEL = {
'1': 'Key Cylinder or Inside thumb turn', '1': 'by Key Cylinder or Inside thumb turn',
'2': 'Touch function (lock and leave)' '2': 'by Touch function (lock and leave)'
} }
TAMPER_ALARM_LEVEL = { TAMPER_ALARM_LEVEL = {

View File

@ -115,7 +115,7 @@ def test_lock_alarm_type(mock_openzwave):
values.alarm_type.data = 21 values.alarm_type.data = 21
value_changed(values.alarm_type) value_changed(values.alarm_type)
assert device.device_state_attributes[zwave.ATTR_LOCK_STATUS] == \ assert device.device_state_attributes[zwave.ATTR_LOCK_STATUS] == \
'Manually Locked by None' 'Manually Locked None'
values.alarm_type.data = 18 values.alarm_type.data = 18
value_changed(values.alarm_type) value_changed(values.alarm_type)