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

'NoneType' object is not subscriptable #123

Open
eximo84 opened this issue Nov 6, 2024 · 2 comments
Open

'NoneType' object is not subscriptable #123

eximo84 opened this issue Nov 6, 2024 · 2 comments
Labels
bug Something isn't working

Comments

@eximo84
Copy link

eximo84 commented Nov 6, 2024

Getting a lot of spam in the logs for most of the shows being tracked.

Also there is a bug around time

2024-11-06 10:52:11.384 WARNING (MainThread) [homeassistant.util.loop] Detected blocking call to open with args ('/usr/local/lib/python3.12/site-packages/pytz/zoneinfo/GB', 'rb') inside the event loop by custom integration 'trakt_tv' at custom_components/trakt_tv/apis/trakt.py, line 303: timezoned_now = datetime.now(pytz.timezone(configuration.get_timezone())) (offender: /usr/local/lib/python3.12/site-packages/pytz/__init__.py, line 108: return open(filename, 'rb')), please create a bug report at https://github.com/dylandoamaral/trakt-integration/issues
File "/config/custom_components/trakt_tv/apis/trakt.py", line 303, in fetch_upcoming
2024-11-06 10:52:13.228 WARNING (MainThread) [custom_components.trakt_tv.apis.trakt] Show only-murders-in-the-building can't be extracted due to 'NoneType' object is not subscriptable
2024-11-06 10:52:13.957 WARNING (MainThread) [custom_components.trakt_tv.apis.trakt] Show all-the-light-we-cannot-see can't be extracted due to 'NoneType' object is not subscriptable
2024-11-06 10:52:14.316 WARNING (MainThread) [custom_components.trakt_tv.apis.trakt] Show slow-horses can't be extracted due to 'NoneType' object is not subscriptable
2024-11-06 10:52:14.993 WARNING (MainThread) [custom_components.trakt_tv.apis.trakt] Show the-mick can't be extracted due to 'NoneType' object is not subscriptable
2024-11-06 10:52:15.173 WARNING (MainThread) [custom_components.trakt_tv.apis.trakt] Show presumed-innocent can't be extracted due to 'NoneType' object is not subscriptable
2024-11-06 10:52:15.563 WARNING (MainThread) [custom_components.trakt_tv.apis.trakt] Show the-boys-2019 can't be extracted due to 'NoneType' object is not subscriptable
2024-11-06 10:52:15.711 WARNING (MainThread) [custom_components.trakt_tv.apis.trakt] Show house-of-the-dragon can't be extracted due to 'NoneType' object is not subscriptable
2024-11-06 10:52:16.223 WARNING (MainThread) [custom_components.trakt_tv.apis.trakt] Show trying can't be extracted due to 'NoneType' object is not subscriptable
2024-11-06 10:52:16.377 WARNING (MainThread) [custom_components.trakt_tv.apis.trakt] Show the-bear can't be extracted due to 'NoneType' object is not subscriptable
2024-11-06 10:52:16.520 WARNING (MainThread) [custom_components.trakt_tv.apis.trakt] Show acapulco can't be extracted due to 'NoneType' object is not subscriptable
2024-11-06 10:52:16.663 WARNING (MainThread) [custom_components.trakt_tv.apis.trakt] Show shogun-2024 can't be extracted due to 'NoneType' object is not subscriptable
2024-11-06 10:52:16.797 WARNING (MainThread) [custom_components.trakt_tv.apis.trakt] Show bodkin can't be extracted due to 'NoneType' object is not subscriptable
2024-11-06 10:52:16.974 WARNING (MainThread) [custom_components.trakt_tv.apis.trakt] Show hacks-2021 can't be extracted due to 'NoneType' object is not subscriptable
@dylandoamaral dylandoamaral added the bug Something isn't working label Nov 6, 2024
@m4tthall73
Copy link

Yes, I just installed this integration myself and am seeing similar

This error originated from a custom integration.

Logger: custom_components.trakt_tv.apis.trakt
Source: custom_components/trakt_tv/apis/trakt.py:198
integration: Trakt (documentation, issues)
First occurred: 16:24:48 (51 occurrences)
Last logged: 16:25:06

Show band-of-brothers can't be extracted due to 'NoneType' object is not subscriptable
Show star-trek-voyager can't be extracted due to 'NoneType' object is not subscriptable
Show star-trek-the-next-generation can't be extracted due to 'NoneType' object is not subscriptable
Show the-wonder-years can't be extracted due to 'NoneType' object is not subscriptable
Show star-trek can't be extracted due to 'NoneType' object is not subscriptable

I am getting the following entires around the same time, which may be related

Logger: homeassistant.components.websocket_api.http.connection
Source: components/websocket_api/http.py:525
integration: Home Assistant WebSocket API (documentation, issues)
First occurred: 16:23:06 (32 occurrences)
Last logged: 16:28:17

[281472720105200] from fe80::dd88:9ed5:483e:fff3: Disconnected: Did not receive auth message within 10 seconds
[281472794565440] from fe80::dd88:9ed5:483e:fff3: Disconnected: Did not receive auth message within 10 seconds
[281472362240544] from fe80::dd88:9ed5:483e:fff3: Disconnected: Did not receive auth message within 10 seconds
[281472360134496] from fe80::dd88:9ed5:483e:fff3: Disconnected: Did not receive auth message within 10 seconds
[281472360132480] from fe80::dd88:9ed5:483e:fff3: Disconnected: Did not receive auth message within 10 seconds

Looking at some of the sensors there then seems to be some odd data

image

@eximo84
Copy link
Author

eximo84 commented Nov 20, 2024

I have disabled this for now as it was spamming the tmdb api like crazy which kept rate limiting my pihole instance which caused other issues for my containers.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants