Move connect_socket into the context
This commit is contained in:
@@ -86,9 +86,9 @@ class GeoRideLockSwitchEntity(SwitchEntity):
|
||||
|
||||
async def async_update(self):
|
||||
""" update the current tracker"""
|
||||
_LOGGER.info('update')
|
||||
_LOGGER.info('update %s', self._tracker_id)
|
||||
self._data = await self._get_tracker_callback(self._tracker_id)
|
||||
_LOGGER.debug('data %s', self._data)
|
||||
_LOGGER.debug('data %s', self._data.is_locked)
|
||||
|
||||
self._name = self._data.tracker_name
|
||||
self._is_on = self._data.is_locked
|
||||
|
||||
Reference in New Issue
Block a user