Skip to content

Commit

Permalink
v1.1.7 introduce counter for field test
Browse files Browse the repository at this point in the history
  • Loading branch information
magicmatt007 committed Jan 14, 2023
1 parent 00ceeb6 commit 9c84a35
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
6 changes: 4 additions & 2 deletions custom_components/v_zug/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@
import asyncio
import datetime
import logging
import pytz

import aiohttp
import pytz

_LOGGER = logging.getLogger(__name__)

Expand Down Expand Up @@ -124,7 +124,9 @@ async def get_last_push_notifications(self):
_LOGGER.warning(delta.total_seconds())

if (
delta.total_seconds() < 60 * 5
delta.total_seconds()
< 60
* 10 # HA seems to aggregate statistics every 5 minutes -> Switch on the counter for 10 minutes to capture him
): # After the program has finished, show 1 for 5 minutes
self.program_completed_counter = 1
else:
Expand Down
2 changes: 1 addition & 1 deletion custom_components/v_zug/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,5 @@
"zeroconf": [],
"homekit": {},
"iot_class": "local_polling",
"version": "1.1.6"
"version": "1.1.7"
}

0 comments on commit 9c84a35

Please sign in to comment.