Skip to content

TypeError: encoding without a string argument #6

@csacca

Description

@csacca

This error originated from a custom integration.

Logger: homeassistant.config_entries
Source: custom_components/uhoo/init.py:46
Integration: uHoo (documentation, issues)
First occurred: 6:10:21 PM (1 occurrences)
Last logged: 6:10:21 PM

Error setting up entry [email protected] for uhoo
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/config_entries.py", line 304, in async_setup
result = await component.async_setup_entry(hass, self) # type: ignore
File "/config/custom_components/uhoo/init.py", line 46, in async_setup_entry
await client.login()
File "/usr/local/lib/python3.9/site-packages/pyuhoo/client.py", line 61, in login
encrypted: str = encrypted_hash(code, salted)
File "/usr/local/lib/python3.9/site-packages/pyuhoo/util.py", line 26, in encrypted_hash
code_hash.update(bytes(code, "utf-8"))
TypeError: encoding without a string argument

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions