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

Can't login #1043

Open
Speedduke opened this issue Feb 12, 2025 · 1 comment
Open

Can't login #1043

Speedduke opened this issue Feb 12, 2025 · 1 comment
Assignees

Comments

@Speedduke
Copy link

Registratore: homeassistant.config_entries
Fonte: config_entries.py:637
Prima occorrenza: 07:06:17 (2 occorrenze)
Ultimo accesso: 07:28:04

Error setting up entry Aarlo for [email protected] for aarlo
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/config_entries.py", line 637, in __async_setup_with_context
result = await component.async_setup_entry(hass, self)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/config/custom_components/aarlo/init.py", line 246, in async_setup_entry
arlo = await hass.async_add_executor_job(login, hass, domain_config)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
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/aarlo/init.py", line 408, in login
arlo = PyArlo(**PyaarloCfg.create_options(hass, conf))
File "/usr/local/lib/python3.13/site-packages/pyaarlo/init.py", line 235, in init
self._bases.append(ArloBase(dname, self, device))
~~~~~~~~^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.13/site-packages/pyaarlo/base.py", line 53, in init
super().init(name, arlo, attrs)
~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.13/site-packages/pyaarlo/device.py", line 50, in init
self._save(key, value)
~~~~~~~~~~^^^^^^^^^^^^
File "/usr/local/lib/python3.13/site-packages/pyaarlo/super.py", line 73, in _save
self._arlo.st.set(self._to_storage_key(attr), value, prefix=self._id)
~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.13/site-packages/pyaarlo/storage.py", line 68, in set
self.db[ekey] = value
~~~~~~~^^^^^^
TypeError: 'bytes' object does not support item assignment

I have this problem since this night.
Can anyone help me?

Thanks 🙂🙂🙂

@Speedduke Speedduke changed the title Cant login Can't login Feb 12, 2025
@twrecked
Copy link
Owner

This feels like a mishandled unicode issue. What is the name of base station?

@twrecked twrecked self-assigned this Feb 12, 2025
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