Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Crash getting date/time #65

Open
jimboca opened this issue Dec 14, 2020 · 1 comment
Open

Crash getting date/time #65

jimboca opened this issue Dec 14, 2020 · 1 comment
Assignees

Comments

@jimboca
Copy link
Collaborator

jimboca commented Dec 14, 2020

2020-12-11 13:27:40,544 [Controller] [ERROR] Exception in thread Controller:
Traceback (most recent call last):
  File "/usr/local/lib/python3.7/threading.py", line 917, in _bootstrap_inner
    self.run()
  File "/usr/local/lib/python3.7/threading.py", line 865, in run
    self._target(*self._args, **self._kwargs)
  File "/usr/local/lib/python3.7/site-packages/pgc_interface/pgc_interface.py", line 797, in _parseInput
    self.longPoll()
  File "./ecobee-poly.py", line 427, in longPoll
    self.updateThermostats()
  File "./ecobee-poly.py", line 450, in updateThermostats
    fullData = self.getThermostatFull(thermostatId)
  File "./ecobee-poly.py", line 717, in getThermostatFull
    return self.getThermostatSelection(id,True,True,True,True,True,True,True,True,True,True,True,True)
  File "./ecobee-poly.py", line 733, in getThermostatSelection
    if not self._checkTokens():
  File "./ecobee-poly.py", line 115, in _checkTokens
    return self._getRefresh()
  File "./ecobee-poly.py", line 272, in _getRefresh
    if not self._startRefresh(test=test):
  File "./ecobee-poly.py", line 232, in _startRefresh
    l_dt = datetime.fromtimestamp(self._last_dtns).strftime(self._lock_fmt)
TypeError: an integer is required (got type str)
@jimboca jimboca self-assigned this Dec 14, 2020
jimboca added a commit that referenced this issue Dec 24, 2020
@jimboca jimboca closed this as completed Dec 25, 2020
@jimboca jimboca reopened this Dec 31, 2020
@jimboca
Copy link
Collaborator Author

jimboca commented Dec 31, 2020

Not fixed. Need to properly format _last_dtns

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant