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

Type checking error #17

Closed
jihoonl opened this issue May 14, 2014 · 0 comments

Comments

@jihoonl
Copy link
Collaborator

commented May 14, 2014

Exception in thread Thread-5:
Traceback (most recent call last):
  File "/usr/lib/python2.7/threading.py", line 551, in __bootstrap_inner
    self.run()
  File "/usr/lib/python2.7/threading.py", line 504, in run
    self.__target(*self.__args, **self.__kwargs)
  File "/home/yujin/demos/rocon_demo_201405/src/rocon_devices/rocon_hue/scripts/rocon_hue_bridge.py", line 57, in hue_checker
    self.bulb_checker()
  File "/home/yujin/demos/rocon_demo_201405/src/rocon_devices/rocon_hue/scripts/rocon_hue_bridge.py", line 88, in bulb_checker
    if light.reachable:
  File "/home/yujin/demos/rocon_demo_201405/src/rocon_devices/rocon_hue/src/rocon_hue/phue.py", line 276, in reachable
    self._reachable = self._get('reachable')
  File "/home/yujin/demos/rocon_demo_201405/src/rocon_devices/rocon_hue/src/rocon_hue/phue.py", line 87, in _get
    return self.bridge.get_light(self.light_id, *args, **kwargs)
  File "/home/yujin/demos/rocon_demo_201405/src/rocon_devices/rocon_hue/src/rocon_hue/phue.py", line 627, in get_light
    return state['state'][parameter]
TypeError: string indices must be integers, not str
@jihoonl jihoonl added the bug label May 14, 2014
@dwlee dwlee closed this in 6a546e3 May 14, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
2 participants
You can’t perform that action at this time.