Skip to content

Commit

Permalink
Extend timeout to 30 seconds, set default polling interval to 30 seco…
Browse files Browse the repository at this point in the history
…nds. Update HACS info page to include new debugging information.
  • Loading branch information
djtimca committed Jun 13, 2022
1 parent 46a2521 commit 1920893
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 4 deletions.
2 changes: 1 addition & 1 deletion custom_components/omnilogic/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ def __init__(
async def _async_update_data(self):
"""Fetch data from OmniLogic."""
try:
async with async_timeout.timeout(20):
async with async_timeout.timeout(30):
data = await self.api.get_telemetry_data()

self._timeout_count = 0
Expand Down
2 changes: 1 addition & 1 deletion custom_components/omnilogic/const.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

DOMAIN = "omnilogic"
CONF_SCAN_INTERVAL = "polling_interval"
DEFAULT_SCAN_INTERVAL = 6
DEFAULT_SCAN_INTERVAL = 30
DEFAULT_PH_OFFSET = 0
COORDINATOR = "coordinator"
OMNI_API = "omni_api"
Expand Down
8 changes: 6 additions & 2 deletions info.md
Original file line number Diff line number Diff line change
Expand Up @@ -98,5 +98,9 @@ If you have problems with the integration, the first thing we will need to troub
2. Hit the 'Run' button at the top.
3. Enter your username and password
4. Hit Enter to clear your credentials
5. Look for a file called 'output_116_YOURUSERNAME_telemetry.json' in the left side
6. Post your telemetry when you open an issue in this repository as a code block so we can review and troubleshoot
5. After the script finishes, your file name will be listed in the output (eg. `output_116_5216g89yd5_telemetry.json`)
- Click on the **"Show Files"** on the top left
- Look for the respective file and click on it to open and view the content
- It may be useful to `CTRL+F` for your file name as the sidebar view cannot be expanded
- Copy the telemetry data
7. Post your telemetry when you open an issue in this repository as a json code block so we can review and troubleshoot

0 comments on commit 1920893

Please sign in to comment.