Compare commits

...

4 Commits
0.6.0 ... 0.6.2

Author SHA1 Message Date
24180c9345 Shipping v0.6.2 2021-05-05 22:56:38 +02:00
af0a4a37aa Bump georideapilib min version to v0.6.1 2021-05-05 22:53:52 +02:00
a83bae6d3e Shipping v0.6.1 2021-04-11 18:01:27 +02:00
c229ca4b6e Fix lock change 2021-04-11 18:00:54 +02:00
2 changed files with 5 additions and 5 deletions

View File

@@ -4,10 +4,10 @@
"config_flow": true,
"documentation": "https://github.com/ptimatth/GeorideHA",
"requirements": [
"georideapilib>=0.6.0",
"georideapilib>=0.6.1",
"pyjwt>=1.7.1"
],
"dependencies": [],
"codeowners": ["ptimatth"],
"version": "0.6.0"
"version": "0.6.2"
}

View File

@@ -58,7 +58,7 @@ class GeoRideLockSwitchEntity(CoordinatorEntity, SwitchEntity):
success = await self._hass.async_add_executor_job(GeoRideApi.lock_tracker,
token, self._tracker_device.tracker.tracker_id)
if success:
self._tracker.is_locked = True
self._tracker_device.tracker.is_locked = True
async def async_turn_off(self, **kwargs):
""" unlock the GeoRide tracker """
@@ -68,7 +68,7 @@ class GeoRideLockSwitchEntity(CoordinatorEntity, SwitchEntity):
success = await self._hass.async_add_executor_job(GeoRideApi.unlock_tracker,
token, self._tracker_device.tracker.tracker_id)
if success:
self._tracker.is_locked = False
self._tracker_device.tracker.is_locked = False
async def async_toggle(self, **kwargs):
""" toggle lock the georide tracker """
@@ -77,7 +77,7 @@ class GeoRideLockSwitchEntity(CoordinatorEntity, SwitchEntity):
token = await georide_context.get_token()
result = await self._hass.async_add_executor_job(GeoRideApi.toogle_lock_tracker,
token, self._tracker_device.tracker.tracker_id)
self._tracker.is_locked = result
self._tracker_device.tracker.is_locked = result
@property
def unique_id(self):