Closed Simon-Naylor closed 3 months ago
I have the same error even after checking the MyT app for some popups:
2024-08-08 17:50:33.675 ERROR (MainThread) [custom_components.toyota] 1 validation error for NotificationResponseModel
guid
field required (type=value_error.missing)
2024-08-08 17:50:33.676 INFO (MainThread) [homeassistant.components.binary_sensor] Setting up toyota.binary_sensor
2024-08-08 17:50:33.676 ERROR (MainThread) [homeassistant.components.binary_sensor] Error while setting up toyota platform for binary_sensor
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 364, in _async_setup_platform
await asyncio.shield(awaitable)
File "/config/custom_components/toyota/binary_sensor.py", line 232, in async_setup_entry
for index, _ in enumerate(coordinator.data):
^^^^^^^^^^^^^^^^^^^^^^^^^^^
TypeError: 'NoneType' object is not iterable
2024-08-08 17:50:33.678 INFO (MainThread) [homeassistant.components.device_tracker] Setting up toyota.device_tracker
2024-08-08 17:50:33.679 ERROR (MainThread) [homeassistant.components.device_tracker] Error while setting up toyota platform for device_tracker
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 364, in _async_setup_platform
await asyncio.shield(awaitable)
File "/config/custom_components/toyota/device_tracker.py", line 39, in async_setup_entry
for index, vehicle in enumerate(coordinator.data)
^^^^^^^^^^^^^^^^^^^^^^^^^^^
TypeError: 'NoneType' object is not iterable
2024-08-08 17:50:33.680 INFO (MainThread) [homeassistant.components.sensor] Setting up toyota.sensor
2024-08-08 17:50:33.681 ERROR (MainThread) [homeassistant.components.sensor] Error while setting up toyota platform for sensor
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 364, in _async_setup_platform
await asyncio.shield(awaitable)
File "/config/custom_components/toyota/sensor.py", line 209, in async_setup_entry
for index, _ in enumerate(coordinator.data):
^^^^^^^^^^^^^^^^^^^^^^^^^^^
TypeError: 'NoneType' object is not iterable
2024-08-08 17:50:43.135 ERROR (MainThread) [custom_components.toyota] 1 validation error for NotificationResponseModel
guid
field required (type=value_error.missing)
2024-08-08 17:50:43.135 DEBUG (MainThread) [custom_components.toyota] Finished fetching toyota data in 0.816 seconds (success: True)
2024-08-08 17:50:43.136 INFO (MainThread) [homeassistant.components.binary_sensor] Setting up toyota.binary_sensor
2024-08-08 17:50:43.136 ERROR (MainThread) [homeassistant.components.binary_sensor] Error while setting up toyota platform for binary_sensor
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 364, in _async_setup_platform
await asyncio.shield(awaitable)
File "/config/custom_components/toyota/binary_sensor.py", line 232, in async_setup_entry
for index, _ in enumerate(coordinator.data):
^^^^^^^^^^^^^^^^^^^^^^^^^^^
TypeError: 'NoneType' object is not iterable
2024-08-08 17:50:43.139 INFO (MainThread) [homeassistant.components.device_tracker] Setting up toyota.device_tracker
2024-08-08 17:50:43.139 ERROR (MainThread) [homeassistant.components.device_tracker] Error while setting up toyota platform for device_tracker
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 364, in _async_setup_platform
await asyncio.shield(awaitable)
File "/config/custom_components/toyota/device_tracker.py", line 39, in async_setup_entry
for index, vehicle in enumerate(coordinator.data)
^^^^^^^^^^^^^^^^^^^^^^^^^^^
TypeError: 'NoneType' object is not iterable
2024-08-08 17:50:43.142 INFO (MainThread) [homeassistant.components.sensor] Setting up toyota.sensor
2024-08-08 17:50:43.143 ERROR (MainThread) [homeassistant.components.sensor] Error while setting up toyota platform for sensor
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 364, in _async_setup_platform
await asyncio.shield(awaitable)
File "/config/custom_components/toyota/sensor.py", line 209, in async_setup_entry
for index, _ in enumerate(coordinator.data):
^^^^^^^^^^^^^^^^^^^^^^^^^^^
TypeError: 'NoneType' object is not iterable```
Similar for me - but no "old car" involved. I think I have a few more errors as well - the blocking call doesn't seem good.
My perception is that it has been happening for a few days and is getting worse (more errors).
2024-08-08 19:30:06.897 WARNING (MainThread) [homeassistant.util.loop] Detected blocking call to open with args ('/root/.cache/toyota_credentials_cache_contains_secrets', 'r') inside the event loop by custom integration 'toyota' at custom_components/toyota/init.py, line 56: client = MyT( (offender: /usr/local/lib/python3.12/site-packages/mytoyota/controller.py, line 56: with open(str(CACHE_FILENAME), "r", encoding="utf-8") as f:), please create a bug report at https://github.com/DurgNomis-drol/ha_toyota/issues
For developers, please see https://developers.home-assistant.io/docs/asyncio_blocking_operations/#open
Traceback (most recent call last):
File "
2024-08-08 19:30:08.501 ERROR (MainThread) [custom_components.toyota] 2 validation errors for NotificationResponseModel guid field required (type=value_error.missing) payload -> 0 -> vin field required (type=value_error.missing)
2024-08-08 19:30:09.853 ERROR (MainThread) [homeassistant.components.binary_sensor] Error while setting up toyota platform for binary_sensor Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 364, in _async_setup_platform await asyncio.shield(awaitable) File "/config/custom_components/toyota/binary_sensor.py", line 232, in async_setupentry for index, in enumerate(coordinator.data): ^^^^^^^^^^^^^^^^^^^^^^^^^^^ TypeError: 'NoneType' object is not iterable 2024-08-08 19:30:09.857 ERROR (MainThread) [homeassistant.components.device_tracker] Error while setting up toyota platform for device_tracker Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 364, in _async_setup_platform await asyncio.shield(awaitable) File "/config/custom_components/toyota/device_tracker.py", line 39, in async_setup_entry for index, vehicle in enumerate(coordinator.data) ^^^^^^^^^^^^^^^^^^^^^^^^^^^ TypeError: 'NoneType' object is not iterable 2024-08-08 19:30:09.860 ERROR (MainThread) [homeassistant.components.sensor] Error while setting up toyota platform for sensor Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 364, in _async_setup_platform await asyncio.shield(awaitable) File "/config/custom_components/toyota/sensor.py", line 209, in async_setupentry for index, in enumerate(coordinator.data): ^^^^^^^^^^^^^^^^^^^^^^^^^^^ TypeError: 'NoneType' object is not iterable 2024-08-08 19:50:51.505 ERROR (MainThread) [custom_components.toyota] 2 validation errors for NotificationResponseModel guid field required (type=value_error.missing) payload -> 0 -> vin field required (type=value_error.missing) 2024-08-08 19:50:51.505 ERROR (MainThread) [homeassistant.components.binary_sensor] Error while setting up toyota platform for binary_sensor Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 364, in _async_setup_platform await asyncio.shield(awaitable) File "/config/custom_components/toyota/binary_sensor.py", line 232, in async_setupentry for index, in enumerate(coordinator.data): ^^^^^^^^^^^^^^^^^^^^^^^^^^^ TypeError: 'NoneType' object is not iterable 2024-08-08 19:50:51.507 ERROR (MainThread) [homeassistant.components.device_tracker] Error while setting up toyota platform for device_tracker Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 364, in _async_setup_platform await asyncio.shield(awaitable) File "/config/custom_components/toyota/device_tracker.py", line 39, in async_setup_entry for index, vehicle in enumerate(coordinator.data) ^^^^^^^^^^^^^^^^^^^^^^^^^^^ TypeError: 'NoneType' object is not iterable 2024-08-08 19:50:51.509 ERROR (MainThread) [homeassistant.components.sensor] Error while setting up toyota platform for sensor Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 364, in _async_setup_platform await asyncio.shield(awaitable) File "/config/custom_components/toyota/sensor.py", line 209, in async_setupentry for index, in enumerate(coordinator.data): ^^^^^^^^^^^^^^^^^^^^^^^^^^^ TypeError: 'NoneType' object is not iterable
This is a duplicate of https://github.com/DurgNomis-drol/ha_toyota/issues/286
I'm now constantly getting the Unavailable when looking at any entity for my Toyota RAV4.
I get the following when looking at the logs:-
Error while setting up toyota platform for sensor
Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 364, in _async_setup_platform await asyncio.shield(awaitable) File "/config/custom_components/toyota/sensor.py", line 209, in async_setupentry for index, in enumerate(coordinator.data): ^^^^^^^^^^^^^^^^^^^^^^^^^^^ TypeError: 'NoneType' object is not iterable
I wonder if this is cased by the fact that this Integration reports 2 devices (my old RAV4, that I traded in for my new RAV4). I can't see how to delete the old car, so the best I have done is disable it. Could this old car be causing some problem, if the integration tries to pull any data for it.
Thanks -Si-