Skip to content
This repository has been archived by the owner on Apr 23, 2024. It is now read-only.

Sending no time when tracking chore gives an error #175

Closed
isabellaalstrom opened this issue Aug 20, 2021 · 1 comment
Closed

Sending no time when tracking chore gives an error #175

isabellaalstrom opened this issue Aug 20, 2021 · 1 comment
Labels
bug Something isn't working
Milestone

Comments

@isabellaalstrom
Copy link
Contributor

  File "/config/custom_components/grocy/services.py", line 197, in wrapper
    coordinator.api.execute_chore(chore_id, done_by)
  File "/usr/local/lib/python3.9/site-packages/pygrocy/grocy.py", line 107, in execute_chore
    return self._api_client.execute_chore(chore_id, done_by, tracked_time)
  File "/usr/local/lib/python3.9/site-packages/pygrocy/grocy_api_client.py", line 626, in execute_chore
    localized_tracked_time = localize_datetime(tracked_time)
  File "/usr/local/lib/python3.9/site-packages/pygrocy/utils.py", line 47, in localize_datetime
    return local_tz.localize(timestamp).astimezone(pytz.utc)
AttributeError: 'zoneinfo.ZoneInfo' object has no attribute 'localize'

tracked_time: datetime = datetime.now(),

@SebRut
Copy link
Owner

SebRut commented Aug 23, 2021

should be fixed in next release.

@SebRut SebRut closed this as completed Aug 23, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants