Skip to content

Commit

Permalink
Added notes feature to controller
Browse files Browse the repository at this point in the history
USer can device.notes = 'Add the note they want'
and retrive the history of their work
device.notes

Signed-off-by: Christian Tremblay <christian.tremblay@servisys.com>
  • Loading branch information
ChristianTremblay committed Nov 13, 2015
1 parent 1cf3379 commit 717f47c
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions BAC0/core/devices/Device.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,11 @@ def __init__(self, address, device_id, network, *, poll=10):

self._notes = namedtuple('_notes',
['timestamp', 'notes'])

self._notes.timestamp = []
self._notes.notes = []
self._notes.notes.append("Controller initialized")
self._notes.timestamp.append(datetime.now())

@property
def notes(self):
Expand Down

0 comments on commit 717f47c

Please sign in to comment.