From 1275ffa8826ea8895c5344692f87a7a354b059cd Mon Sep 17 00:00:00 2001 From: Matthieu Date: Sun, 3 Nov 2019 20:25:28 +0100 Subject: [PATCH] Fix socket init error --- README.md | 3 +-- georideapilib/socket.py | 5 ++--- setup.py | 2 +- 3 files changed, 4 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index fec2d84..6f726d8 100644 --- a/README.md +++ b/README.md @@ -12,7 +12,7 @@ This library can control your georide tracker tracker Some code have been taken from @alexmohr https://github.com/alexmohr/sonyapilib -This library is used as communication interface in a home assistant component to control media players, which can be found here:(Not ready yet ;)) +This library is used as communication interface in a home assistant component to control media players, which can be found here: https://github.com/ptimatth/GeorideHA At the moment not all functions offered by the api are implemented. If you miss a function feel free to create a pull request or open a feature request. @@ -30,5 +30,4 @@ This library has been tested with python 3.7 and above, functionality for older - https://github.com/ptimatth/pyGeoride ## Todo -- [ ] Add support of SocketIO connection - [ ] Add support of "Get a shared trip" endpoint diff --git a/georideapilib/socket.py b/georideapilib/socket.py index ab44a13..356bde7 100644 --- a/georideapilib/socket.py +++ b/georideapilib/socket.py @@ -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""" diff --git a/setup.py b/setup.py index 05e75fd..decb6aa 100644 --- a/setup.py +++ b/setup.py @@ -19,7 +19,7 @@ CURRENT_DIR = os.path.dirname(__file__) setup( name='georideapilib', packages=['georideapilib'], # this must be the same as the name above - version='0.4.3', + version='0.4.4', description='Lib to control georide tracker devices with their rest api', author='Matthieu DUVAL', author_email='georideapilib@duval-dev.fr',