Python error

im getting a error for some reason today about a python error.

this seems to be my biggest issue:
unpkg.com/@polymer/[email protected]/lib/utils/async.js?module:42:11 Uncaught TypeError: Cannot read property ‘state’ of undefined

This is preventing me from restarting the UI

I hope the log below will help.

018-11-07 08:57:04 WARNING (MainThread) [homeassistant.components.http] legacy_api_password support has been enabled. If you don't require it, remove the 'api_password' from your http config.
2018-11-07 08:57:16 WARNING (MainThread) [homeassistant.loader] You are using a custom component for camera.logi which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you do experience issues with Home Assistant.
2018-11-07 08:57:16 WARNING (MainThread) [homeassistant.loader] You are using a custom component for logi which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you do experience issues with Home Assistant.
2018-11-07 08:57:16 WARNING (MainThread) [homeassistant.loader] You are using a custom component for custom_updater which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you do experience issues with Home Assistant.
2018-11-07 08:57:17 WARNING (MainThread) [homeassistant.loader] You are using a custom component for emulated_roku which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you do experience issues with Home Assistant.
2018-11-07 08:57:18 WARNING (MainThread) [homeassistant.loader] You are using a custom component for device_tracker.life360 which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you do experience issues with Home Assistant.
2018-11-07 08:57:19 WARNING (SyncWorker_2) [homeassistant.components.python_script] Folder python_scripts not found in configuration folder
2018-11-07 08:57:19 WARNING (MainThread) [homeassistant.loader] You are using a custom component for sensor.logi which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you do experience issues with Home Assistant.
2018-11-07 08:57:19 WARNING (MainThread) [homeassistant.loader] You are using a custom component for dreamscreen which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you do experience issues with Home Assistant.
2018-11-07 08:57:21 WARNING (MainThread) [homeassistant.loader] You are using a custom component for media_player.alexa which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you do experience issues with Home Assistant.
2018-11-07 08:57:21 ERROR (MainThread) [homeassistant.setup] Setup failed for python_script: Component failed to initialize.
2018-11-07 08:57:24 ERROR (MainThread) [homeassistant.components.sensor] logi: Error on device update!
Traceback (most recent call last):
  File "/usr/local/lib/python3.6/site-packages/homeassistant/helpers/entity_platform.py", line 251, in _async_add_entity
    await entity.async_device_update(warning=False)
  File "/usr/local/lib/python3.6/site-packages/homeassistant/helpers/entity.py", line 349, in async_device_update
    await self.hass.async_add_executor_job(self.update)
  File "/usr/local/lib/python3.6/site-packages/homeassistant/core.py", line 299, in async_add_executor_job
    None, target, *args)
  File "uvloop/loop.pyx", line 2502, in uvloop.loop.Loop.run_in_executor
TypeError: coroutines cannot be used with run_in_executor()
2018-11-07 08:57:24 ERROR (MainThread) [homeassistant.components.sensor] logi: Error on device update!
Traceback (most recent call last):
  File "/usr/local/lib/python3.6/site-packages/homeassistant/helpers/entity_platform.py", line 251, in _async_add_entity
    await entity.async_device_update(warning=False)
  File "/usr/local/lib/python3.6/site-packages/homeassistant/helpers/entity.py", line 349, in async_device_update
    await self.hass.async_add_executor_job(self.update)
  File "/usr/local/lib/python3.6/site-packages/homeassistant/core.py", line 299, in async_add_executor_job
    None, target, *args)
  File "uvloop/loop.pyx", line 2502, in uvloop.loop.Loop.run_in_executor
TypeError: coroutines cannot be used with run_in_executor()
2018-11-07 08:57:24 ERROR (MainThread) [homeassistant.components.sensor] logi: Error on device update!
Traceback (most recent call last):
  File "/usr/local/lib/python3.6/site-packages/homeassistant/helpers/entity_platform.py", line 251, in _async_add_entity
    await entity.async_device_update(warning=False)
  File "/usr/local/lib/python3.6/site-packages/homeassistant/helpers/entity.py", line 349, in async_device_update
    await self.hass.async_add_executor_job(self.update)
  File "/usr/local/lib/python3.6/site-packages/homeassistant/core.py", line 299, in async_add_executor_job
    None, target, *args)
  File "uvloop/loop.pyx", line 2502, in uvloop.loop.Loop.run_in_executor
TypeError: coroutines cannot be used with run_in_executor()
2018-11-07 08:57:24 ERROR (MainThread) [homeassistant.components.sensor] logi: Error on device update!
Traceback (most recent call last):
  File "/usr/local/lib/python3.6/site-packages/homeassistant/helpers/entity_platform.py", line 251, in _async_add_entity
    await entity.async_device_update(warning=False)
  File "/usr/local/lib/python3.6/site-packages/homeassistant/helpers/entity.py", line 349, in async_device_update
    await self.hass.async_add_executor_job(self.update)
  File "/usr/local/lib/python3.6/site-packages/homeassistant/core.py", line 299, in async_add_executor_job
    None, target, *args)
  File "uvloop/loop.pyx", line 2502, in uvloop.loop.Loop.run_in_executor
TypeError: coroutines cannot be used with run_in_executor()
2018-11-07 08:57:26 WARNING (MainThread) [homeassistant.setup] Setup of input_text is taking over 10 seconds.
2018-11-07 08:57:28 WARNING (MainThread) [homeassistant.setup] Setup of wemo is taking over 10 seconds.
2018-11-07 08:57:28 WARNING (MainThread) [homeassistant.setup] Setup of xiaomi_aqara is taking over 10 seconds.
2018-11-07 08:57:37 ERROR (SyncWorker_4) [homeassistant.components.wemo] Unable to get description url for 192.168.86.27
2018-11-07 08:57:38 WARNING (MainThread) [homeassistant.components.remote] Setup of platform harmony is taking over 10 seconds.
2018-11-07 08:58:28 ERROR (MainThread) [homeassistant.components.remote] Setup of platform harmony is taking longer than 60 seconds. Startup will proceed without waiting any longer.
2018-11-07 08:58:28 ERROR (MainThread) [homeassistant.core] Error doing job: Task exception was never retrieved
Traceback (most recent call last):
  File "/usr/local/lib/python3.6/site-packages/homeassistant/setup.py", line 56, in async_setup_component
    return await task  # type: ignore
  File "/usr/local/lib/python3.6/site-packages/homeassistant/setup.py", line 118, in _async_setup_component
    conf_util.async_process_component_config(hass, config, domain)
  File "/usr/local/lib/python3.6/site-packages/homeassistant/config.py", line 737, in async_process_component_config
    config = component.CONFIG_SCHEMA(config)  # type: ignore
  File "/usr/local/lib/python3.6/site-packages/voluptuous/schema_builder.py", line 267, in __call__
    return self._compiled([], data)
  File "/usr/local/lib/python3.6/site-packages/voluptuous/schema_builder.py", line 589, in validate_dict
    return base_validate(path, iteritems(data), out)
  File "/usr/local/lib/python3.6/site-packages/voluptuous/schema_builder.py", line 381, in validate_mapping
    cval = cvalue(key_path, value)
  File "/usr/local/lib/python3.6/site-packages/voluptuous/schema_builder.py", line 811, in validate_callable
    return schema(data)
  File "/usr/local/lib/python3.6/site-packages/voluptuous/schema_builder.py", line 267, in __call__
    return self._compiled([], data)
  File "/usr/local/lib/python3.6/site-packages/voluptuous/schema_builder.py", line 589, in validate_dict
    return base_validate(path, iteritems(data), out)
  File "/usr/local/lib/python3.6/site-packages/voluptuous/schema_builder.py", line 381, in validate_mapping
    cval = cvalue(key_path, value)
  File "/usr/local/lib/python3.6/site-packages/voluptuous/schema_builder.py", line 811, in validate_callable
    return schema(data)
  File "/usr/local/lib/python3.6/site-packages/voluptuous/schema_builder.py", line 267, in __call__
    return self._compiled([], data)
  File "/usr/local/lib/python3.6/site-packages/voluptuous/schema_builder.py", line 589, in validate_dict
    return base_validate(path, iteritems(data), out)
  File "/usr/local/lib/python3.6/site-packages/voluptuous/schema_builder.py", line 381, in validate_mapping
    cval = cvalue(key_path, value)
  File "/usr/local/lib/python3.6/site-packages/voluptuous/validators.py", line 204, in _run
    return self._exec(self._compiled, value, path)
  File "/usr/local/lib/python3.6/site-packages/voluptuous/validators.py", line 284, in _exec
    v = func(path, v)
  File "/usr/local/lib/python3.6/site-packages/voluptuous/schema_builder.py", line 630, in validate_sequence
    cval = validate(index_path, value)
  File "/usr/local/lib/python3.6/site-packages/voluptuous/validators.py", line 204, in _run
    return self._exec(self._compiled, value, path)
  File "/usr/local/lib/python3.6/site-packages/voluptuous/validators.py", line 249, in _exec
    return func(path, v)
  File "/usr/local/lib/python3.6/site-packages/voluptuous/validators.py", line 204, in _run
    return self._exec(self._compiled, value, path)
  File "/usr/local/lib/python3.6/site-packages/voluptuous/validators.py", line 284, in _exec
    v = func(path, v)
  File "/usr/local/lib/python3.6/site-packages/voluptuous/schema_builder.py", line 811, in validate_callable
    return schema(data)
  File "/usr/local/lib/python3.6/site-packages/voluptuous/schema_builder.py", line 267, in __call__
    return self._compiled([], data)
  File "/usr/local/lib/python3.6/site-packages/voluptuous/schema_builder.py", line 589, in validate_dict
    return base_validate(path, iteritems(data), out)
  File "/usr/local/lib/python3.6/site-packages/voluptuous/schema_builder.py", line 381, in validate_mapping
    cval = cvalue(key_path, value)
  File "/usr/local/lib/python3.6/site-packages/voluptuous/schema_builder.py", line 811, in validate_callable
    return schema(data)
  File "/usr/local/lib/python3.6/site-packages/homeassistant/helpers/config_validation.py", line 309, in service
    if valid_entity_id(value):
  File "/usr/local/lib/python3.6/site-packages/homeassistant/core.py", line 80, in valid_entity_id
    return ENTITY_ID_PATTERN.match(entity_id) is not None
TypeError: expected string or bytes-like object
2018-11-07 08:58:28 ERROR (MainThread) [homeassistant.core] Error doing job: Task exception was never retrieved
Traceback (most recent call last):
  File "/usr/local/lib/python3.6/site-packages/homeassistant/helpers/entity.py", line 310, in async_update_ha_state
    self.entity_id, state, attr, self.force_update, self._context)
  File "/usr/local/lib/python3.6/site-packages/homeassistant/core.py", line 903, in async_set
    context)
  File "/usr/local/lib/python3.6/site-packages/homeassistant/core.py", line 673, in __init__
    "State max length is 255 characters.").format(entity_id))
homeassistant.exceptions.InvalidStateError: Invalid state encountered for entity id: sensor.game_location. State max length is 255 characters.
2018-11-07 08:59:04 WARNING (MainThread) [homeassistant.components.media_player] Updating alexa media_player took longer than the scheduled update interval 0:00:10
2018-11-07 08:59:18 WARNING (SyncWorker_0) [plexapi] BadRequest (401) unauthorized http://192.168.86.151:32400/; <html><head><script>window.location = window.location.href.match(/(^.+\/)[^\/]*$/)[1] + 'web/index.html';</script><title>Unauthorized</title></head><body><h1>401 Unauthorized</h1></body></html>
2018-11-07 08:59:31 WARNING (MainThread) [homeassistant.core] Unable to find service homekit/start
2018-11-07 08:59:48 ERROR (MainThread) [frontend.js.latest.201810264] http://72.23.74.85:44515/local/custom_ui/button-card.js?v=3:48:23 Uncaught TypeError: Cannot read property 'state' of undefined
2018-11-07 08:59:50 ERROR (MainThread) [frontend.js.latest.201810264] https://unpkg.com/@polymer/[email protected]/lib/utils/async.js?module:42:11 Uncaught TypeError: Cannot read property 'state' of undefined
2018-11-07 08:59:51 ERROR (MainThread) [frontend.js.latest.201810264] https://unpkg.com/@polymer/[email protected]/lib/utils/async.js?module:42:11 Uncaught TypeError: Cannot read property 'state' of undefined

im not sure if this will help or not. But trying to fix via terminal I got this error.

Nobody has any suggestions? I have been trying to figure this out all day. The crazy part is when I went to bed last night it was working fine.

This is whats happening.