Skip to content
Snippets Groups Projects
Commit fb47b7e1 authored by Raphael GIRARDOT's avatar Raphael GIRARDOT
Browse files

FAULT state when ContactKey is empty too

parent 58b4b64e
Branches
Tags v2.11.5
No related merge requests found
...@@ -288,8 +288,12 @@ class ContactManager(Device): ...@@ -288,8 +288,12 @@ class ContactManager(Device):
self.debug_stream("In initStatus()") self.debug_stream("In initStatus()")
# Adapt state and status according to parsed contacts # Adapt state and status according to parsed contacts
if self.contactMap: if self.contactMap:
if self.phonebookKey:
self.set_state(PyTango.DevState.ON) self.set_state(PyTango.DevState.ON)
self.traceMessage(self.READY) self.traceMessage(self.READY)
else:
self.set_state(PyTango.DevState.FAULT)
self.traceMessage(f"{self.CONTACT_KEY_PROPERTY} property is not correctly set")
else: else:
self.set_state(PyTango.DevState.FAULT) self.set_state(PyTango.DevState.FAULT)
self.traceMessage(f"{self.CONTACT_LIST_PROPERTY} property is not correctly set") self.traceMessage(f"{self.CONTACT_LIST_PROPERTY} property is not correctly set")
......
...@@ -56,7 +56,7 @@ Every commands are at OPERATOR Level. ...@@ -56,7 +56,7 @@ Every commands are at OPERATOR Level.
| Name | Description | | Name | Description |
| ---- | ----------- | | ---- | ----------- |
| ALARM | Device failed to update PANIC Phonebook or to init PyAlarm devices. | | ALARM | Device failed to update PANIC Phonebook or to init PyAlarm devices. |
| FAULT | `ContactList` property is not correcty set. | | FAULT | `ContactList` or `ContactKey` property is not correcty set. |
| INIT | Device is initializing, parsing its properties and checking PANIC phonebook availability.<br />In this state, you are not authorized to read `panicPhonebookReady` attribute, nore to read or set `contact` attribute. | | INIT | Device is initializing, parsing its properties and checking PANIC phonebook availability.<br />In this state, you are not authorized to read `panicPhonebookReady` attribute, nore to read or set `contact` attribute. |
| MOVING | Writing PANIC Phonebook and initializing PyAlarm devices.<br />In this state, you are not authorized to set `contact` attribute. | | MOVING | Writing PANIC Phonebook and initializing PyAlarm devices.<br />In this state, you are not authorized to set `contact` attribute. |
| ON | Device is ready to do its job. | | ON | Device is ready to do its job. |
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment