Change swith to lock icon
This commit is contained in:
@@ -129,3 +129,6 @@ class GeorideContext:
|
|||||||
""" here we return the current valid tocken, TODO: add here token expiration control"""
|
""" here we return the current valid tocken, TODO: add here token expiration control"""
|
||||||
return self._token
|
return self._token
|
||||||
|
|
||||||
|
async def async_update(self):
|
||||||
|
""" update the current tracker"""
|
||||||
|
_LOGGER.info('async_update ')
|
||||||
@@ -94,6 +94,12 @@ class GeorideLockSwitchEntity(SwitchDevice):
|
|||||||
""" Georide switch token callback method """
|
""" Georide switch token callback method """
|
||||||
return self._token_callback
|
return self._token_callback
|
||||||
|
|
||||||
|
@property
|
||||||
|
def icon(self):
|
||||||
|
if self._is_on:
|
||||||
|
return "mdi:lock"
|
||||||
|
return "mdi:lock-open"
|
||||||
|
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def device_info(self):
|
def device_info(self):
|
||||||
|
|||||||
Reference in New Issue
Block a user