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

Rooster Money becomes unavailable at the start of a new week #17

Closed
4 tasks done
pantherale0 opened this issue Sep 3, 2023 · 2 comments
Closed
4 tasks done

Rooster Money becomes unavailable at the start of a new week #17

pantherale0 opened this issue Sep 3, 2023 · 2 comments
Assignees
Labels
bug Something isn't working

Comments

@pantherale0
Copy link
Owner

System Health details

NA

Checklist

  • I have enabled debug logging for my installation.
  • I have filled out the issue template to the best of my ability.
  • This issue only contains 1 issue (if you have multiple issues, open one issue for each issue).
  • This issue is not a duplicate issue of currently previous issues..

Describe the issue

Integration stops responding after some time with the following error logged:

This error originated from a custom integration.

Logger: custom_components.rooster_money.update_coordinator
Source: helpers/update_coordinator.py:229
Integration: Natwest Rooster Money (documentation, issues)
First occurred: 28 August 2023 at 00:00:48 (6 occurrences)
Last logged: 00:00:37

Error fetching Rooster Money data:

Reproduction steps

...

Debug logs

NA

Diagnostics dump

No response

@pantherale0
Copy link
Owner Author

Additional error on reload:

This error originated from a custom integration.

Logger: homeassistant.config_entries
Source: custom_components/rooster_money/init.py:43
Integration: Natwest Rooster Money (documentation, issues)
First occurred: 00:29:01 (1 occurrences)
Last logged: 00:29:01

Error setting up entry Natwest Rooster Money for rooster_money
Traceback (most recent call last):
File "/config/custom_components/rooster_money/init.py", line 32, in async_setup_entry
rooster = await RoosterMoney.create(
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/pyroostermoney/roostermoney.py", line 43, in create
await self.update()
File "/usr/local/lib/python3.11/site-packages/pyroostermoney/roostermoney.py", line 52, in update
await self._update_children()
File "/usr/local/lib/python3.11/site-packages/pyroostermoney/roostermoney.py", line 70, in _update_children
child = await ChildAccount.create(child.get("userId"),
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/pyroostermoney/child/init.py", line 66, in create
await self.update()
File "/usr/local/lib/python3.11/site-packages/pyroostermoney/child/init.py", line 78, in update
await self.get_active_allowance_period()
File "/usr/local/lib/python3.11/site-packages/pyroostermoney/child/init.py", line 116, in get_active_allowance_period
raise LookupError("No allowance period found")
LookupError: No allowance period found

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/config_entries.py", line 388, in async_setup
result = await component.async_setup_entry(hass, self)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/config/custom_components/rooster_money/init.py", line 43, in async_setup_entry
raise CannotConnect
custom_components.rooster_money.CannotConnect

@pantherale0 pantherale0 transferred this issue from pantherale0/ha-roostermoney Sep 3, 2023
@pantherale0 pantherale0 added the bug Something isn't working label Sep 3, 2023
@pantherale0 pantherale0 self-assigned this Sep 3, 2023
@pantherale0
Copy link
Owner Author

This happens because NatWest hasn't built a new allowance period for the current week, will need to update the update function so that it ignores these errors and doesn't update the data in this situation

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant