The __repr__() method should return object
Closed this issue · 0 comments
bitcanon commented
When calling the repr() method of the Device class it should return a text that can be used to create a new object of that class.
Example:
Device(id='123-4567', zone='5', location='Livingroom', alerts=None, ...and so on)
You should then be able to copy that text and create a new object:
test = Device(id='123-4567', zone='5', location='Livingroom', alerts=None, ...and so on)
print(text.id)