Fix socket init error

This commit is contained in:
2019-11-03 20:25:28 +01:00
parent 9923f45a95
commit 1275ffa882
3 changed files with 4 additions and 6 deletions

View File

@@ -98,9 +98,8 @@ class GeorideSocket():
""" on_locked """
_LOGGER.debug('Locked received: %s', data)
if self._on_locked_callback is not None:
self._on_locked_callback(data)
else:
self._initialised = True
self._on_locked_callback(data)
self._initialised = True
def connect(self, auth_token):
""" connect to the georide socket"""