aboutsummaryrefslogtreecommitdiffstats
path: root/geoclue.py
diff options
context:
space:
mode:
authorEdi Feschiyan <edi.feschiyan@konsulko.com>2020-05-14 12:32:59 +0300
committerEdi Feschiyan <edi.feschiyan@konsulko.com>2020-06-09 09:29:49 +0300
commit32540833af3e633880aa365284c72950da27fece (patch)
tree7f319fad0d79ad2c7a10baccd012ed58876da7c1 /geoclue.py
parent219e992aa8a8e5a7db48cc9d66bb0ddbbe7c21a3 (diff)
removing waitresponse, will be using *Service.response() to get a packet. trying to figure out async generator as a service listener. WIP
Diffstat (limited to 'geoclue.py')
-rw-r--r--geoclue.py12
1 files changed, 6 insertions, 6 deletions
diff --git a/geoclue.py b/geoclue.py
index cbccf3b..1578b74 100644
--- a/geoclue.py
+++ b/geoclue.py
@@ -7,14 +7,14 @@ class GeoClueService(AGLBaseService):
def __init__(self, ip, port=None, api='geoclue'):
super().__init__(ip=ip, port=port, api=api, service='agl-service-geoclue')
- async def location(self, waitresponse=False):
- return await self.request('location', waitresponse=waitresponse)
+ async def location(self):
+ return await self.request('location')
- async def subscribe(self, event='location', waitresponse=False):
- await super().subscribe(event=event, waitresponse=waitresponse)
+ async def subscribe(self, event='location'):
+ await super().subscribe(event=event)
- async def unsubscribe(self, event='location', waitresponse=False):
- await super().unsubscribe(event=event, waitresponse=waitresponse)
+ async def unsubscribe(self, event='location'):
+ await super().unsubscribe(event=event)
async def main(loop):