Skip to content

Commit

Permalink
format the source code
Browse files Browse the repository at this point in the history
  • Loading branch information
Konstantin Deev committed Aug 19, 2023
1 parent a487899 commit 96b0afc
Showing 1 changed file with 9 additions and 5 deletions.
14 changes: 9 additions & 5 deletions custom_components/eyeonwater/test.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import aiohttp
import asyncio
import datetime

from eow import Account, Client, Meter
import aiohttp
from eow import Account, Client


async def main():
Expand All @@ -21,12 +21,16 @@ async def main():
print(f"{len(meters)} meters found")
for meter in meters:
today = datetime.datetime.now().replace(
hour=0, minute=0, second=0, microsecond=0
hour=0,
minute=0,
second=0,
microsecond=0,
)
# yesterday = today - datetime.timedelta(days=0)

data = await meter.get_historical_data(
client=client, units="GAL", date=today
client=client,
units="GAL",
date=today,
)
for d in data:
print(str(d["start"]), d["sum"])
Expand Down

0 comments on commit 96b0afc

Please sign in to comment.