From 96b0afc0faf1d14012f140ab6c0909b0ca91c734 Mon Sep 17 00:00:00 2001 From: Konstantin Deev Date: Sat, 19 Aug 2023 15:40:54 -0500 Subject: [PATCH] format the source code --- custom_components/eyeonwater/test.py | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/custom_components/eyeonwater/test.py b/custom_components/eyeonwater/test.py index f25d631..5e9918c 100644 --- a/custom_components/eyeonwater/test.py +++ b/custom_components/eyeonwater/test.py @@ -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(): @@ -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"])