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

Get time with a timezone. #25

Merged
merged 1 commit into from
Feb 8, 2020
Merged

Conversation

bdraco
Copy link
Contributor

@bdraco bdraco commented Feb 8, 2020

Fixes:

Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/setup.py", line 174, in
_async_setup_component
component.setup, hass, processed_config # type: ignore
File "/usr/local/lib/python3.7/concurrent/futures/thread.py", line 57,
in run
result = self.fn(*self.args, **self.kwargs)
File "/config/custom_components/august/init.py", line 161, in
setup
access_token_cache_file=hass.config.path(AUGUST_CONFIG_FILE),
File "/usr/local/lib/python3.7/site-packages/august/authenticator.py",
line 110, in init
if self._authentication.is_expired():
File "/usr/local/lib/python3.7/site-packages/august/authenticator.py",
line 76, in is_expired
return self.parsed_expiration_time() < datetime.utcnow()
TypeError: can't compare offset-naive and offset-aware datetimes

Fixes:

Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/setup.py", line 174, in
_async_setup_component
    component.setup, hass, processed_config  # type: ignore
  File "/usr/local/lib/python3.7/concurrent/futures/thread.py", line 57,
in run
    result = self.fn(*self.args, **self.kwargs)
  File "/config/custom_components/august/__init__.py", line 161, in
setup
    access_token_cache_file=hass.config.path(AUGUST_CONFIG_FILE),
  File "/usr/local/lib/python3.7/site-packages/august/authenticator.py",
line 110, in __init__
    if self._authentication.is_expired():
  File "/usr/local/lib/python3.7/site-packages/august/authenticator.py",
line 76, in is_expired
    return self.parsed_expiration_time() < datetime.utcnow()
TypeError: can't compare offset-naive and offset-aware datetimes
@snjoetw
Copy link
Owner

snjoetw commented Feb 8, 2020

merged, will make another release

@snjoetw
Copy link
Owner

snjoetw commented Feb 8, 2020

included in 0.10.1: https://pypi.org/project/py-august/#history

@bdraco bdraco deleted the fix_timezone_compare branch February 13, 2020 07:13
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

Successfully merging this pull request may close these issues.

2 participants