Return name of location to lock instead of serial number. (#2460)

This commit is contained in:
John Arild Berentsen authored and Paulus Schoutsen committed 2016-07-06 18:33:58 -07:00
1 parent 216a756590
commit 3e3d9c881e
1 file changed
+1 -1
+1 -1
View File
@@ -39,7 +39,7 @@ class VerisureDoorlock(LockDevice):
@property
def name(self):
"""Return the name of the lock."""
return 'Lock {}'.format(self._id)
return '{}'.format(hub.lock_status[self._id].location)
@property
def state(self):