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

Sensor not being created #5

Open
WeaselKnows opened this issue Mar 24, 2024 · 0 comments
Open

Sensor not being created #5

WeaselKnows opened this issue Mar 24, 2024 · 0 comments

Comments

@WeaselKnows
Copy link

Describe the bug
Fresh install of the integration, and the following warning and bugs show in the log after re-starting HA core running in HAOS. And I'm not able to identify any sensor being created that I can add to a dashboard.

2024-03-24 14:27:36.131 WARNING (MainThread) [homeassistant.helpers.frame] Detected that custom integration 'redpocket' sets "options" directly to update a config entry. This is deprecated and will stop working in Home Assistant 2024.9, it should be updated to use async_update_entry instead at custom_components/redpocket/init.py, line 46: config_entry.options = config_entry.data, please create a bug report at https://github.com/mbillow/ha-redpocket/issues

2024-03-24 14:27:37.727 ERROR (MainThread) [homeassistant.components.sensor] Error while setting up redpocket platform for sensor
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 350, in _async_setup_platform
await asyncio.shield(awaitable)
File "/config/custom_components/redpocket/sensor.py", line 41, in async_setup_entry
lines: List[RedPocketLine] = await hass.async_add_executor_job(rp.get_lines)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/concurrent/futures/thread.py", line 58, in run
result = self.fn(*self.args, **self.kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/redpocket/api.py", line 257, in get_lines
lines = self.request(url="https://www.redpocket.com/account/get-other-lines")
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/redpocket/api.py", line 254, in request
raise RedPocketAPIError("Unknown Error", return_code)
redpocket.exceptions.RedPocketAPIError: ('Unknown Error', 5041)

Desktop (please complete the following information):

  • OS: HAOS
  • Browser - Chrome
  • Version [e.g. 22

Core 2024.3.3
Supervisor 2024.03.0
Operating System 12.1
Frontend 20240307.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

1 participant