NoneType' object is not subscriptable #77

Closed
opened 2023-06-19 02:10:01 +02:00 by tempus2016 · 3 comments
tempus2016 commented 2023-06-19 02:10:01 +02:00 (Migrated from github.com)

Started getting this since the last update.

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: 18 June 2023 at 23:09:49 (1 occurrences) 
Last logged: 18 June 2023 at 23:09:49

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

Started getting this since the last update. ``` 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: 18 June 2023 at 23:09:49 (1 occurrences) Last logged: 18 June 2023 at 23:09:49 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:20 +02:00 (Migrated from github.com)

Hi, which version do you use?

Hi, which version do you use?
tempus2016 commented 2023-06-21 18:00:09 +02:00 (Migrated from github.com)

V9-beta3. Latest HAOS and Supervisor.

V9-beta3. Latest HAOS and Supervisor.
Andre0512 commented 2023-06-21 21:31:13 +02:00 (Migrated from github.com)

Thanks, please checkout the latest beta version.

Thanks, please checkout the latest beta version.
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: xiconfjs/hon#77
No description provided.