Mercurial > code > home > repos > homeauto
diff service/environment/environment.py @ 1524:13b7e4de3824
whitespace
Ignore-this: c727f388f197a6fae88595fe6d455c7d
darcs-hash:971e4474b4dbd35a722be670f5599298fb5ec83f
author | drewp <drewp@bigasterisk.com> |
---|---|
date | Wed, 05 Feb 2020 00:29:13 -0800 |
parents | 0da337780f22 |
children | 23b972df1856 |
line wrap: on
line diff
--- a/service/environment/environment.py Wed Feb 05 00:23:06 2020 -0800 +++ b/service/environment/environment.py Wed Feb 05 00:29:13 2020 -0800 @@ -28,7 +28,7 @@ @STATS.update.time() def update(masterGraph): stmt = lambda s, p, o: masterGraph.patchObject(ROOM.environment, s, p, o) - + now = datetime.datetime.now(tzlocal()) stmt(DEV.environment, ROOM.localHour, Literal(now.hour)) @@ -53,7 +53,7 @@ stmt(DEV.calendar, ROOM.twilight, ROOM['withinTwilight'] if isWithinTwilight(now) else ROOM['daytime']) - + def main(): arg = docopt(""" Usage: environment.py [options] @@ -89,4 +89,3 @@ if __name__ == '__main__': main() -