From 3e3d9c881e90c1cccd82a3e29554bbce7477ad11 Mon Sep 17 00:00:00 2001 From: John Arild Berentsen Date: Thu, 7 Jul 2016 03:33:58 +0200 Subject: [PATCH] Return name of location to lock instead of serial number. (#2460) --- homeassistant/components/lock/verisure.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/homeassistant/components/lock/verisure.py b/homeassistant/components/lock/verisure.py index 08cfbc6202f..c9f18c5533e 100644 --- a/homeassistant/components/lock/verisure.py +++ b/homeassistant/components/lock/verisure.py @@ -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):