We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6ff673e commit 75479c8Copy full SHA for 75479c8
2 files changed
README.md
@@ -41,6 +41,7 @@ async def main():
41
42
watt = await connection.watthourmeter()
43
print(watt)
44
+ await connection.close()
45
46
asyncio.run(main())
47
```
oligo/asyncio/asynciber.py
@@ -105,7 +105,7 @@ async def measurement(self) -> dict:
105
106
async def watthourmeter(self) -> float:
107
"""Returns your current power consumption."""
108
- return await self.measurement()["consumption"]
+ return (await self.measurement())["consumption"]
109
110
async def icpstatus(self) -> bool:
111
"""Returns the status of your ICP."""
0 commit comments