dylandoamaral / trakt-integration

A Trakt integration for Home Assistant compatible with upcoming media card
MIT License
33 stars 13 forks source link

'NoneType' object is not subscriptable #123

Open eximo84 opened 2 weeks ago

eximo84 commented 2 weeks ago

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
m4tthall73 commented 1 week ago

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 commented 6 days ago

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.