Skip to content
Snippets Groups Projects
Commit 30ce7a44 authored by Jan David Mol's avatar Jan David Mol
Browse files

Allow attributes to be read/written also if device is alarming. We want to be...

Allow attributes to be read/written also if device is alarming. We want to be able to know its status then, after all.
parent eb2ede9f
Branches
Tags
No related merge requests found
...@@ -72,7 +72,7 @@ class attribute_wrapper(attribute): ...@@ -72,7 +72,7 @@ class attribute_wrapper(attribute):
if access == AttrWriteType.READ_WRITE: if access == AttrWriteType.READ_WRITE:
""" if the attribute is of READ_WRITE type, assign the write function to it""" """ if the attribute is of READ_WRITE type, assign the write function to it"""
@only_in_states([DevState.STANDBY, DevState.ON], log=False) @only_in_states([DevState.STANDBY, DevState.ON, DevState.ALARM], log=False)
@fault_on_error() @fault_on_error()
def write_func_wrapper(device, value): def write_func_wrapper(device, value):
""" """
...@@ -86,7 +86,7 @@ class attribute_wrapper(attribute): ...@@ -86,7 +86,7 @@ class attribute_wrapper(attribute):
""" Assign the read function to the attribute""" """ Assign the read function to the attribute"""
@only_in_states([DevState.STANDBY, DevState.ON], log=False) @only_in_states([DevState.STANDBY, DevState.ON, DevState.ALARM], log=False)
@fault_on_error() @fault_on_error()
def read_func_wrapper(device): def read_func_wrapper(device):
""" """
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment