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

Triad 36 by D1: TypeError: object of type 'NoneType' has no len() #22

Closed
mdz opened this issue Dec 28, 2021 · 0 comments · Fixed by #23
Closed

Triad 36 by D1: TypeError: object of type 'NoneType' has no len() #22

mdz opened this issue Dec 28, 2021 · 0 comments · Fixed by #23

Comments

@mdz
Copy link
Owner

mdz commented Dec 28, 2021

Originally reported by @gdeuss via home-assistant/home-assistant.io#20896

*Unexpected error fetching smarttub data: object of type 'NoneType' has no len()
Logger: homeassistant.components.smarttub.controller
Source: components/smarttub/controller.py:98
Integration: SmartTub (documentation, issues)
First occurred: 10:51:14 AM (123 occurrences)
Last logged: 12:56:35 PM

Unexpected error fetching smarttub data: object of type 'NoneType' has no len()
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 187, in _async_refresh
self.data = await self._async_update_data()
File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 147, in _async_update_data
return await self.update_method()
File "/usr/src/homeassistant/homeassistant/components/smarttub/controller.py", line 90, in async_update_data
data[spa.id] = await self._get_spa_data(spa)
File "/usr/src/homeassistant/homeassistant/components/smarttub/controller.py", line 98, in _get_spa_data
full_status, reminders, errors = await asyncio.gather(
File "/usr/local/lib/python3.9/site-packages/smarttub/api.py", line 206, in get_reminders
return [
File "/usr/local/lib/python3.9/site-packages/smarttub/api.py", line 207, in
SpaReminder(self, **reminder_info)
File "/usr/local/lib/python3.9/site-packages/smarttub/api.py", line 469, in init
self.last_updated = dateutil.parser.isoparse(properties["lastUpdated"])
File "/usr/local/lib/python3.9/site-packages/dateutil/parser/isoparser.py", line 37, in func
return f(self, str_in, *args, **kwargs)
File "/usr/local/lib/python3.9/site-packages/dateutil/parser/isoparser.py", line 134, in isoparse
components, pos = self._parse_isodate(dt_str)
File "/usr/local/lib/python3.9/site-packages/dateutil/parser/isoparser.py", line 208, in _parse_isodate
return self._parse_isodate_common(dt_str)
File "/usr/local/lib/python3.9/site-packages/dateutil/parser/isoparser.py", line 213, in _parse_isodate_common
len_str = len(dt_str)
TypeError: object of type 'NoneType' has no len()
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 a pull request may close this issue.

1 participant