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

No budget sensors when using Tracking Budgeting #22

Open
yourjelly opened this issue Jan 15, 2025 · 1 comment
Open

No budget sensors when using Tracking Budgeting #22

yourjelly opened this issue Jan 15, 2025 · 1 comment

Comments

@yourjelly
Copy link

Would like to see the projected savings value show up as a sensor when using tracking budgeting.
image

May also need some checks for tracking budgeting to avoid the following error that i see in logs

Error while setting up actualbudget platform for sensor

  File "/usr/local/lib/python3.13/site-packages/homeassistant/helpers/entity_platform.py", line 366, in _async_setup_platform
    await asyncio.shield(awaitable)
  File "/config/custom_components/actualbudget/sensor.py", line 87, in async_setup_entry
    budgets = await api.get_budgets()
              ^^^^^^^^^^^^^^^^^^^^^^^
  File "/config/custom_components/actualbudget/actualbudget.py", line 128, in get_budgets
    return await self.hass.async_add_executor_job(self.get_budgets_sync)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.13/concurrent/futures/thread.py", line 59, in run
    result = self.fn(*self.args, **self.kwargs)
  File "/config/custom_components/actualbudget/actualbudget.py", line 135, in get_budgets_sync
    category = str(budget_raw.category.name)
                   ^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: 'NoneType' object has no attribute 'name'`
@dannytsang
Copy link

I get the same. My setup: HA 2025.1.4 using v0.1.0 and Actual v25.1.0

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

2 participants