Skip to content

Commit

Permalink
Updated timeout and debug info
Browse files Browse the repository at this point in the history
  • Loading branch information
adechant committed Oct 12, 2023
1 parent 00a2460 commit c1d9369
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 4 deletions.
2 changes: 1 addition & 1 deletion custom_components/ha_vscode/config_flow.py
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ def __init__(self, config_entry):
self.oauthToken = config_entry.options.get("token")
self.timeout = config_entry.options.get("timeout")
if self.timeout is None:
self.timeout = 5.0
self.timeout = 7.0
self.log = LOGGER
self._reauth = False

Expand Down
2 changes: 1 addition & 1 deletion custom_components/ha_vscode/const.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
DOMAIN = "ha_vscode"
PACKAGE_NAME = "custom_components.ha_vscode"
DOMAIN_DATA = f"{DOMAIN}_data"
VERSION = "0.1.47"
VERSION = "0.1.48"
MINIMUM_HA_VERSION = "2023.6.0"
ICON = "mdi:format-quote-close"
CONF_ENABLED = "enabled"
Expand Down
2 changes: 1 addition & 1 deletion custom_components/ha_vscode/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,5 @@
"iot_class": "local_polling",
"issue_tracker": "https://github.com/adechant/ha_vscode/issues",
"requirements": [],
"version": "0.1.47"
"version": "0.1.48"
}
4 changes: 3 additions & 1 deletion custom_components/ha_vscode/vscode_device.py
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,9 @@ def reader(self):
try:
while True:
line = self.proc.stdout.readline().strip()
self.log.debug("Parsing line: " + line)
if line is not None:
if len(line) > 0 :
self.log.debug("Parsing line: " + line)
if not self.checkForOauthToken(line):
self.checkForDevURL(line)
except:
Expand Down

0 comments on commit c1d9369

Please sign in to comment.