Fix binnary sensors

This commit is contained in:
2021-04-10 13:48:31 +02:00
parent e09f8eb7e7
commit 5cab811c85
2 changed files with 11 additions and 5 deletions

View File

@@ -88,6 +88,8 @@ class GeoRideLockSwitchEntity(SwitchEntity):
""" update the current tracker"""
_LOGGER.info('update')
self._data = await self._get_tracker_callback(self._tracker_id)
_LOGGER.debug('data %s', self._data)
self._name = self._data.tracker_name
self._is_on = self._data.is_locked