verbump to 0.0.5

This commit is contained in:
Hauke Petersen
2022-09-15 09:40:22 +02:00
parent 3005dbe7e7
commit cb3e651983
2 changed files with 7 additions and 7 deletions

View File

@@ -21,7 +21,7 @@
import setuptools
name = "steckie"
ver = "0.0.4"
ver = "0.0.5"
desc = 'Read state from Tasmota smart plugs'
setuptools.setup(

View File

@@ -96,14 +96,14 @@ class Steckie(Deichapp):
now_local = now.astimezone(pytz.timezone("Europe/Berlin"))
last_local = cnt["last"].astimezone(pytz.timezone("Europe/Berlin"))
if now_local.date().year != last_local.date().year:
self.cnt["year"] = total
self.cnt["month"] = total
self.cnt["day"] = total
cnt["year"] = total
cnt["month"] = total
cnt["day"] = total
elif now_local.date().month != last_local.date().month:
self.cnt["month"] = total
self.cnt["day"] = total
cnt["month"] = total
cnt["day"] = total
elif now_local.date().day != last_local.date().day:
self.cnt["day"] = total
cnt["day"] = total
cnt["last"] = now
# write data to DB