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

HomeAssistant Sync fails after first entry #3066

Closed
mikhail5555 opened this issue Mar 26, 2024 · 1 comment · Fixed by #3067
Closed

HomeAssistant Sync fails after first entry #3066

mikhail5555 opened this issue Mar 26, 2024 · 1 comment · Fixed by #3067

Comments

@mikhail5555
Copy link
Contributor

Tandoor Version

v1.5.14

Setup

Unraid

Reverse Proxy

SWAG

Other

No response

Bug description

HomeAssistant Connector only syncs first ingredient from recipe, all following ingredients get the following error

Relevant logs

ERROR:root:received an exception from one of the connectors
Traceback (most recent call last):
  File "/opt/recipes/cookbook/connectors/connector_manager.py", line 177, in run_connectors
    await asyncio.gather(*tasks, return_exceptions=False)
  File "/opt/recipes/cookbook/connectors/homeassistant.py", line 38, in on_shopping_list_entry_created
    await todo_domain.add_item(entity_id=self._config.todo_entity, item=item)
          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/opt/recipes/venv/lib/python3.12/site-packages/homeassistant_api/models/domains.py", line 121, in __call__
    return self.trigger(**service_data)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/opt/recipes/venv/lib/python3.12/site-packages/homeassistant_api/models/domains.py", line 94, in trigger
    return self.domain._client.trigger_service(
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/opt/recipes/venv/lib/python3.12/site-packages/homeassistant_api/rawclient.py", line 262, in trigger_service
    data = self.request(
           ^^^^^^^^^^^^^
  File "/opt/recipes/venv/lib/python3.12/site-packages/homeassistant_api/rawclient.py", line 97, in request
    if self.cache_session:
       ^^^^^^^^^^^^^^^^^^
AttributeError: 'Client' object has no attribute 'cache_session'
@mikhail5555
Copy link
Contributor Author

mikhail5555 commented Mar 26, 2024

assign to myself

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 a pull request may close this issue.

1 participant