Skip to content

Electra Smart does not work anymore #16

@DannyShields

Description

@DannyShields

I'm getting this error everytime for a while now

Error setting up entry for electrasmart
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/config_entries.py", line 769, in __async_setup_with_context
result = await component.async_setup_entry(hass, self)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/components/electrasmart/init.py", line 28, in async_setup_entry
await api.fetch_devices()
File "/usr/local/lib/python3.14/site-packages/electrasmart/api/init.py", line 162, in fetch_devices
await task
File "/usr/local/lib/python3.14/site-packages/electrasmart/api/init.py", line 189, in get_last_telemtry
ac.update_operation_states(resp[Attributes.DATA])
~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.14/site-packages/electrasmart/device/init.py", line 123, in update_operation_states
self._oper_data = json.loads(data["commandJson"]["OPER"])["OPER"]
~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.14/json/init.py", line 345, in loads
raise TypeError(f'the JSON object must be str, bytes or bytearray, '
f'not {s.class.name}')
TypeError: the JSON object must be str, bytes or bytearray, not NoneType

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