Traceback (most recent call last):


 "/setup.py", line 120, in _async_setup_component


 "/setup.py", line 275, in async_process_deps_reqs


 "/setup.py", line 72, in _async_process_dependencies


 "/runners.py", line 43, in run


 "/base_events.py", line 584, in run_until_complete


 "/setup.py", line 45, in async_setup_component


 "/setup.py", line 50, in async_setup_component


 "/setup.py", line 45, in async_setup_component


 "/setup.py", line 45, in async_setup_component


 "/setup.py", line 45, in async_setup_component


 "/setup.py", line 50, in async_setup_component


 "/setup.py", line 120, in _async_setup_component


 "/setup.py", line 275, in async_process_deps_reqs


 "/setup.py", line 72, in _async_process_dependencies


 "/setup.py", line 120, in _async_setup_component


 "/setup.py", line 275, in async_process_deps_reqs


 "/setup.py", line 72, in _async_process_dependencies


 "/__main__.py", line 290, in setup_and_run_hass


 "/bootstrap.py", line 142, in async_from_config_file


 "/bootstrap.py", line 91, in async_from_config_dict


 "/bootstrap.py", line 365, in _async_set_up_integrations


 "/setup.py", line 45, in async_setup_component


 "/setup.py", line 45, in async_setup_component


 "/setup.py", line 50, in async_setup_component


 "/setup.py", line 126, in _async_setup_component


 "/config.py", line 663, in async_process_component_config


 "/loader.py", line 135, in get_component


 "/__init__.py", line 127, in import_module


 "<frozen importlib._bootstrap>", line 1006, in _gcd_import


 "<frozen importlib._bootstrap>", line 983, in _find_and_load


 "<frozen importlib._bootstrap>", line 967, in _find_and_load_unlocked


 "<frozen importlib._bootstrap>", line 677, in _load_unlocked


 "<frozen importlib._bootstrap_external>", line 728, in exec_module


 "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed


 "/__init__.py", line 25, in <module>


 "/state.py", line 17, in <module>


 "/__init__.py", line 6, in <module>


 "/__init__.py", line 234, in <module>


 "/config_validation.py", line 552, in deprecated
AttributeError: 'NoneType' object has no attribute '__name__'

`Traceback (most recent call last):


 "/usr/lib/python3.5/threading.py", line 914, in _bootstrap_inner

self.run()


 "/usr/lib/python3.5/threading.py", line 862, in runs-mode


self._target(*self._args, **self._kwargs)


 "/usr/lib/python3/dist-packages/prompt_toolkit/interface.py", line 673, in run

completions = list(buffer.completer.get_completions(document, complete_event))


 "/usr/share/pgcli/pgcli/pgcompleter.py", line 238, in get_completions

suggestions = suggest_type(document.text, document.text_before_cursor)


 "/usr/share/pgcli/pgcli/packages/sqlcompletion.py", line 100, in suggest_type

full_text, identifier)


 "/usr/share/pgcli/pgcli/packages/sqlcompletion.py", line 192, in suggest_based_on_last_token

token_v = token.value.lower()
AttributeError: 'tuple' object has no attribute 'value'
