mirror of
https://github.com/home-assistant/core.git
synced 2025-07-16 17:57:11 +00:00
Return name of location to lock instead of serial number. (#2460)
This commit is contained in:
parent
216a756590
commit
3e3d9c881e
@ -39,7 +39,7 @@ class VerisureDoorlock(LockDevice):
|
|||||||
@property
|
@property
|
||||||
def name(self):
|
def name(self):
|
||||||
"""Return the name of the lock."""
|
"""Return the name of the lock."""
|
||||||
return 'Lock {}'.format(self._id)
|
return '{}'.format(hub.lock_status[self._id].location)
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def state(self):
|
def state(self):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user