Traceback (most recent call last):


 "/homeassistant/lib64/python3.6/site-packages/homeassistant/helpers/entity.py", line 220, in async_update_ha_state

await self.async_device_update()


 "/homeassistant/lib64/python3.6/site-packages/homeassistant/helpers/entity.py", line 377, in async_device_update

await self.hass.async_add_executor_job(self.update)


 "/opt/rh/rh-python36/root/usr/lib64/python3.6/concurrent/futures/thread.py", line 56, in run

result = self.fn(*self.args, **self.kwargs)


 "/homeassistant/lib64/python3.6/site-packages/homeassistant/components/broadlink/switch.py", line 312, in update

self._state = self._parent_device.get_outlet_status(self._slot)


 "/homeassistant/lib64/python3.6/site-packages/homeassistant/components/broadlink/switch.py", line 325, in get_outlet_status

return self._states['s{}'.format(slot)]
TypeError: 'NoneType' object is not subscriptable

Traceback (most recent call last):


 "1.py", line 31, in <module>

estim.fit( X_train, y_train )


 "/Users/nguyen.hoamy/PycharmProjects/ML/hyperopt-sklearn/hpsklearn/estimator.py", line 747, in fit

fit_iter.send(increment)


 "/Users/nguyen.hoamy/PycharmProjects/ML/hyperopt-sklearn/hpsklearn/estimator.py", line 657, in fit_iter

return_argmin=False, # -- in case no success so far


 "/Users/nguyen.hoamy/PycharmProjects/ML/venv/lib/python3.6/site-packages/hyperopt/fmin.py", line 307, in fmin

return_argmin=return_argmin,


 "/Users/nguyen.hoamy/PycharmProjects/ML/venv/lib/python3.6/site-packages/hyperopt/base.py", line 635, in fmin

return_argmin=return_argmin)


 "/Users/nguyen.hoamy/PycharmProjects/ML/venv/lib/python3.6/site-packages/hyperopt/fmin.py", line 314, in fmin

pass_expr_memo_ctrl=pass_expr_memo_ctrl)


 "/Users/nguyen.hoamy/PycharmProjects/ML/venv/lib/python3.6/site-packages/hyperopt/base.py", line 786, in __init__

pyll.toposort(self.expr)


 "/Users/nguyen.hoamy/PycharmProjects/ML/venv/lib/python3.6/site-packages/hyperopt/pyll/base.py", line 715, in toposort

assert order[-1] == expr
TypeError: 'generator' object is not subscriptable
