Unexpected error fetching a8-48-fa-18-ef-e4 data: 'NoneType' object is not subscriptable #80

Closed
opened 2023-06-21 17:31:53 +02:00 by tempus2016 · 1 comment
tempus2016 commented 2023-06-21 17:31:53 +02:00 (Migrated from github.com)

Another error popped up.

This error originated from a custom integration.

Logger: custom_components.hon.hon
Source: custom_components/hon/hon.py:64
Integration: Haier hOn (documentation, issues)
First occurred: 13:22:36 (2 occurrences)
Last logged: 15:57:19

Unexpected error fetching a8-48-fa-18-ef-e4 data: 'NoneType' object is not subscriptable
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 283, in _async_refresh
    self.data = await self._async_update_data()
                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/config/custom_components/hon/hon.py", line 64, in _async_update_data
    await self._device.update()
  File "/usr/local/lib/python3.11/site-packages/pyhon/appliance.py", line 261, in update
    await self.load_attributes()
  File "/usr/local/lib/python3.11/site-packages/pyhon/appliance.py", line 246, in load_attributes
    self._attributes = self._extra.attributes(self._attributes)
                       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/site-packages/pyhon/appliances/td.py", line 8, in attributes
    if data["lastConnEvent"]["category"] == "DISCONNECTED":
       ~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^
TypeError: 'NoneType' object is not subscriptable
Another error popped up. ``` This error originated from a custom integration. Logger: custom_components.hon.hon Source: custom_components/hon/hon.py:64 Integration: Haier hOn (documentation, issues) First occurred: 13:22:36 (2 occurrences) Last logged: 15:57:19 Unexpected error fetching a8-48-fa-18-ef-e4 data: 'NoneType' object is not subscriptable Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 283, in _async_refresh self.data = await self._async_update_data() ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/config/custom_components/hon/hon.py", line 64, in _async_update_data await self._device.update() File "/usr/local/lib/python3.11/site-packages/pyhon/appliance.py", line 261, in update await self.load_attributes() File "/usr/local/lib/python3.11/site-packages/pyhon/appliance.py", line 246, in load_attributes self._attributes = self._extra.attributes(self._attributes) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.11/site-packages/pyhon/appliances/td.py", line 8, in attributes if data["lastConnEvent"]["category"] == "DISCONNECTED": ~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^ TypeError: 'NoneType' object is not subscriptable ```
Andre0512 commented 2023-06-21 17:58:43 +02:00 (Migrated from github.com)

Duplicate of #77

Duplicate of #77
Sign in to join this conversation.
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: GitHub/hon#80
No description provided.