Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix intermittent TypeError argument of type 'NoneType' is not iterable #198

Conversation

Snuffy2
Copy link
Collaborator

@Snuffy2 Snuffy2 commented Aug 8, 2023

ERROR (MainThread) [homeassistant] Error doing job: Future exception was never retrieved
Traceback (most recent call last):
File "/usr/local/lib/python3.11/concurrent/futures/thread.py", line 58, in run
result = self.fn(*self.args, **self.kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/config/custom_components/places/sensor.py", line 710, in tsc_update
self.do_update("Track State Change")
File "/config/custom_components/places/sensor.py", line 2287, in do_update
self.parse_osm_dict()
File "/config/custom_components/places/sensor.py", line 1101, in parse_osm_dict
if "namedetails" in self.get_attr(ATTR_OSM_DICT) and "name" in self.get_attr(
^^^^^^^^^^^^^^^^^^^^^^^^
TypeError: argument of type 'NoneType' is not iterable

@Snuffy2 Snuffy2 changed the title TypeError-argument-of-type-'NoneType'-is-not-iterable TypeError argument of type 'NoneType' is not iterable Aug 8, 2023
@Snuffy2 Snuffy2 changed the title TypeError argument of type 'NoneType' is not iterable Fix intermittent TypeError argument of type 'NoneType' is not iterable Aug 8, 2023
@Snuffy2 Snuffy2 force-pushed the TypeError-argument-of-type-'NoneType'-is-not-iterable branch from 4aeb4ac to 2e47edf Compare August 8, 2023 21:29
@Snuffy2 Snuffy2 force-pushed the TypeError-argument-of-type-'NoneType'-is-not-iterable branch from 2e47edf to ee7b391 Compare August 8, 2023 21:31
@Snuffy2 Snuffy2 marked this pull request as ready for review August 10, 2023 21:50
@Snuffy2 Snuffy2 merged commit 2d64ad8 into custom-components:master Aug 10, 2023
@Snuffy2 Snuffy2 deleted the TypeError-argument-of-type-'NoneType'-is-not-iterable branch August 10, 2023 21:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants