Traceback (most recent call last):


 "/usr/src/homeassistant/homeassistant/components/websocket_api/commands.py", line 130, in handle_call_service

connection.context(msg),


 "/usr/src/homeassistant/homeassistant/core.py", line 1260, in async_call

task.result()


 "/usr/src/homeassistant/homeassistant/core.py", line 1295, in _execute_service

await handler.func(service_call)


 "/usr/src/homeassistant/homeassistant/helpers/entity_component.py", line 209, in handle_service

self._platforms.values(), func, call, required_features


 "/usr/src/homeassistant/homeassistant/helpers/service.py", line 471, in entity_service_call

future.result()
# pop exception if have


 "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 284, in async_update_ha_state

self._async_write_ha_state()


 "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 323, in _async_write_ha_state

attr.update(self.state_attributes or {})


 "/usr/src/homeassistant/homeassistant/components/light/__init__.py", line 434, in state_attributes

data[ATTR_EFFECT] = self.effect


 "/usr/src/homeassistant/homeassistant/components/flux_led/light.py", line 266, in effect

current_mode = self._bulb.raw_state[3]
TypeError: 'NoneType' object is not subscriptable

Traceback (most recent call last):


 "/usr/local/opt/python/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/powerline/segment.py", line 173, in process_segment

contents = segment['contents_func'](pl, segment_info)


 "/usr/local/opt/python/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/powerline/segment.py", line 412, in <lambda>

contents_func = lambda pl, segment_info: _contents_func(pl=pl, segment_info=segment_info, **args)


 "/usr/local/opt/python/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/powerline/segments/vim/__init__.py", line 83, in ret

r = func(**kwargs)


 "/usr/local/opt/python/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/powerline/segments/vim/__init__.py", line 470, in virtcol_current

textwidth = int(getbufvar('%', '&textwidth'))


 "/usr/local/opt/python/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/powerline/bindings/vim/__init__.py", line 264, in getbufvar

return _vim_to_python(_getbufvar(*args))
TypeError: 'NoneType' object is not callable
