Compare commits
4 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 24180c9345 | |||
| af0a4a37aa | |||
| a83bae6d3e | |||
| c229ca4b6e |
@@ -4,10 +4,10 @@
|
|||||||
"config_flow": true,
|
"config_flow": true,
|
||||||
"documentation": "https://github.com/ptimatth/GeorideHA",
|
"documentation": "https://github.com/ptimatth/GeorideHA",
|
||||||
"requirements": [
|
"requirements": [
|
||||||
"georideapilib>=0.6.0",
|
"georideapilib>=0.6.1",
|
||||||
"pyjwt>=1.7.1"
|
"pyjwt>=1.7.1"
|
||||||
],
|
],
|
||||||
"dependencies": [],
|
"dependencies": [],
|
||||||
"codeowners": ["ptimatth"],
|
"codeowners": ["ptimatth"],
|
||||||
"version": "0.6.0"
|
"version": "0.6.2"
|
||||||
}
|
}
|
||||||
@@ -58,7 +58,7 @@ class GeoRideLockSwitchEntity(CoordinatorEntity, SwitchEntity):
|
|||||||
success = await self._hass.async_add_executor_job(GeoRideApi.lock_tracker,
|
success = await self._hass.async_add_executor_job(GeoRideApi.lock_tracker,
|
||||||
token, self._tracker_device.tracker.tracker_id)
|
token, self._tracker_device.tracker.tracker_id)
|
||||||
if success:
|
if success:
|
||||||
self._tracker.is_locked = True
|
self._tracker_device.tracker.is_locked = True
|
||||||
|
|
||||||
async def async_turn_off(self, **kwargs):
|
async def async_turn_off(self, **kwargs):
|
||||||
""" unlock the GeoRide tracker """
|
""" unlock the GeoRide tracker """
|
||||||
@@ -68,7 +68,7 @@ class GeoRideLockSwitchEntity(CoordinatorEntity, SwitchEntity):
|
|||||||
success = await self._hass.async_add_executor_job(GeoRideApi.unlock_tracker,
|
success = await self._hass.async_add_executor_job(GeoRideApi.unlock_tracker,
|
||||||
token, self._tracker_device.tracker.tracker_id)
|
token, self._tracker_device.tracker.tracker_id)
|
||||||
if success:
|
if success:
|
||||||
self._tracker.is_locked = False
|
self._tracker_device.tracker.is_locked = False
|
||||||
|
|
||||||
async def async_toggle(self, **kwargs):
|
async def async_toggle(self, **kwargs):
|
||||||
""" toggle lock the georide tracker """
|
""" toggle lock the georide tracker """
|
||||||
@@ -77,7 +77,7 @@ class GeoRideLockSwitchEntity(CoordinatorEntity, SwitchEntity):
|
|||||||
token = await georide_context.get_token()
|
token = await georide_context.get_token()
|
||||||
result = await self._hass.async_add_executor_job(GeoRideApi.toogle_lock_tracker,
|
result = await self._hass.async_add_executor_job(GeoRideApi.toogle_lock_tracker,
|
||||||
token, self._tracker_device.tracker.tracker_id)
|
token, self._tracker_device.tracker.tracker_id)
|
||||||
self._tracker.is_locked = result
|
self._tracker_device.tracker.is_locked = result
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def unique_id(self):
|
def unique_id(self):
|
||||||
|
|||||||
Reference in New Issue
Block a user