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

Alexa Guard: TypeError: 'NoneType' object is not subscriptable` in state_json refresh #248

Closed
alandtse opened this issue Jul 7, 2019 · 0 comments · Fixed by #267
Closed
Labels
bug Something isn't working

Comments

@alandtse
Copy link
Owner

alandtse commented Jul 7, 2019

Just a heads up, I'm not in Germany and I too am seeing this (I am in the U.S.).

Sun Jul 07 2019 07:14:24 GMT-0700 (Pacific Daylight Time)
Error doing job: Future exception was never retrieved
Traceback (most recent call last):
  File "/usr/local/lib/python3.7/concurrent/futures/thread.py", line 57, in run
    result = self.fn(*self.args, **self.kwargs)
  File "/config/custom_components/alexa_media/alarm_control_panel.py", line 95, in _handle_event
    self.refresh()
  File "/usr/src/homeassistant/homeassistant/util/__init__.py", line 224, in wrapper
    result = method(*args, **kwargs)
  File "/usr/src/homeassistant/homeassistant/util/__init__.py", line 224, in wrapper
    result = method(*args, **kwargs)
  File "/config/custom_components/alexa_media/alarm_control_panel.py", line 106, in refresh
    if state_json['deviceStates']:
TypeError: 'NoneType' object is not subscriptable

Originally posted by @monsieurlatte in https://github.com/keatontaylor/alexa_media_player/issues/243#issuecomment-509003674

@alandtse alandtse changed the title TypeError: 'NoneType' object is not subscriptable` in state_json Alexa Guard TypeError: 'NoneType' object is not subscriptable` in state_json refresh Jul 7, 2019
@alandtse alandtse changed the title Alexa Guard TypeError: 'NoneType' object is not subscriptable` in state_json refresh Alexa Guard: TypeError: 'NoneType' object is not subscriptable` in state_json refresh Jul 7, 2019
@alandtse alandtse added the bug Something isn't working label Jul 7, 2019
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

Successfully merging a pull request may close this issue.

1 participant