Change swith to lock icon

This commit is contained in:
2019-10-27 16:37:24 +01:00
parent 953d69db8e
commit 55a0f08a0a
2 changed files with 9 additions and 0 deletions

View File

@@ -94,6 +94,12 @@ class GeorideLockSwitchEntity(SwitchDevice):
""" Georide switch token callback method """
return self._token_callback
@property
def icon(self):
if self._is_on:
return "mdi:lock"
return "mdi:lock-open"
@property
def device_info(self):