{"action":"created","issue":{"url":"https://api.github.com/repos/home-assistant/home-assistant/issues/18295","repository_url":"https://api.github.com/repos/home-assistant/home-assistant","labels_url":"https://api.github.com/repos/home-assistant/home-assistant/issues/18295/labels{/name}","comments_url":"https://api.github.com/repos/home-assistant/home-assistant/issues/18295/comments","events_url":"https://api.github.com/repos/home-assistant/home-assistant/issues/18295/events","html_url":"https://github.com/home-assistant/home-assistant/issues/18295","id":378195070,"node_id":"MDU6SXNzdWUzNzgxOTUwNzA=","number":18295,"title":"Configuration validation generates [aiohttp.server] Error handling request","user":{"login":"Konstigt","id":24416775,"node_id":"MDQ6VXNlcjI0NDE2Nzc1","avatar_url":"https://avatars1.githubusercontent.com/u/24416775?v=4","gravatar_id":"","url":"https://api.github.com/users/Konstigt","html_url":"https://github.com/Konstigt","followers_url":"https://api.github.com/users/Konstigt/followers","following_url":"https://api.github.com/users/Konstigt/following{/other_user}","gists_url":"https://api.github.com/users/Konstigt/gists{/gist_id}","starred_url":"https://api.github.com/users/Konstigt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Konstigt/subscriptions","organizations_url":"https://api.github.com/users/Konstigt/orgs","repos_url":"https://api.github.com/users/Konstigt/repos","events_url":"https://api.github.com/users/Konstigt/events{/privacy}","received_events_url":"https://api.github.com/users/Konstigt/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-11-07T08:56:09Z","updated_at":"2018-11-07T08:57:53Z","closed_at":null,"author_association":"NONE","body":"<!-- READ THIS FIRST:\r\n- If you need additional help with this template please refer to https://www.home-assistant.io/help/reporting_issues/\r\n- Make sure you are running the latest version of Home Assistant before reporting an issue: https://github.com/home-assistant/home-assistant/releases\r\n- Do not report issues for components if you are using custom components: files in <config-dir>/custom_components\r\n- This is for bugs only. Feature and enhancement requests should go in our community forum: https://community.home-assistant.io/c/feature-requests\r\n- Provide as many details as possible. Paste logs, configuration sample and code into the backticks. Do not delete any text from this template!\r\n-->\r\n\r\n**Home Assistant release with the issue:**\r\n<!--\r\n- Frontend -> Developer tools -> Info\r\n- Or use this command: hass --version\r\n-->\r\n\r\n$ hass --version\r\n0.81.6\r\n\r\n\r\n**Last working Home Assistant release (if known):**\r\n0.80x\r\n\r\n**Operating environment (Hass.io/Docker/Windows/etc.):**\r\n<!--\r\nPlease provide details about your environment.\r\n-->\r\n\r\n$ lsb_release -rd\r\nDescription:\tUbuntu 16.04.5 LTS\r\nRelease:\t16.04\r\n\r\n**Component/platform:**\r\n<!--\r\nPlease add the link to the documentation at https://www.home-assistant.io/components/ of the component/platform in question.\r\n-->\r\n\r\n\r\n**Description of problem:**\r\n\r\nFrom the GUI, Configuration validation doesn't work. Just keeps spinning forever.\r\n\r\n**Problem-relevant `configuration.yaml` entries and (fill out even if it seems unimportant):**\r\n```yaml\r\n\r\n```\r\n\r\n**Traceback (if applicable):**\r\n```\r\n2018-11-07 09:52:03 ERROR (MainThread) [aiohttp.server] Error handling request\r\nTraceback (most recent call last):\r\n  File \"/home/homeassistant/homeassistant/lib/python3.6/site-packages/aiohttp/web_protocol.py\", line 390, in start\r\n    resp = await self._request_handler(request)\r\n  File \"/home/homeassistant/homeassistant/lib/python3.6/site-packages/aiohttp/web_app.py\", line 366, in _handle\r\n    resp = await handler(request)\r\n  File \"/home/homeassistant/homeassistant/lib/python3.6/site-packages/aiohttp/web_middlewares.py\", line 106, in impl\r\n    return await handler(request)\r\n  File \"/home/homeassistant/homeassistant/lib/python3.6/site-packages/homeassistant/components/http/static.py\", line 66, in staticresource_middleware\r\n    return await handler(request)\r\n  File \"/home/homeassistant/homeassistant/lib/python3.6/site-packages/homeassistant/components/http/real_ip.py\", line 34, in real_ip_middleware\r\n    return await handler(request)\r\n  File \"/home/homeassistant/homeassistant/lib/python3.6/site-packages/homeassistant/components/http/ban.py\", line 66, in ban_middleware\r\n    return await handler(request)\r\n  File \"/home/homeassistant/homeassistant/lib/python3.6/site-packages/homeassistant/components/http/auth.py\", line 68, in auth_middleware\r\n    return await handler(request)\r\n  File \"/home/homeassistant/homeassistant/lib/python3.6/site-packages/homeassistant/components/http/real_ip.py\", line 34, in real_ip_middleware\r\n    return await handler(request)\r\n  File \"/home/homeassistant/homeassistant/lib/python3.6/site-packages/homeassistant/components/http/ban.py\", line 66, in ban_middleware\r\n    return await handler(request)\r\n  File \"/home/homeassistant/homeassistant/lib/python3.6/site-packages/homeassistant/components/http/auth.py\", line 68, in auth_middleware\r\n    return await handler(request)\r\n  File \"/home/homeassistant/homeassistant/lib/python3.6/site-packages/homeassistant/components/http/view.py\", line 113, in handle\r\n    result = await result\r\n  File \"/home/homeassistant/homeassistant/lib/python3.6/site-packages/homeassistant/components/config/core.py\", line 21, in post\r\n    errors = await async_check_ha_config_file(request.app['hass'])\r\n  File \"/home/homeassistant/homeassistant/lib/python3.6/site-packages/homeassistant/config.py\", line 796, in async_check_ha_config_file\r\n    check_ha_config_file, hass)\r\n  File \"/usr/lib/python3.6/concurrent/futures/thread.py\", line 56, in run\r\n    result = self.fn(*self.args, **self.kwargs)\r\n  File \"/home/homeassistant/homeassistant/lib/python3.6/site-packages/homeassistant/scripts/check_config.py\", line 360, in check_ha_config_file\r\n    p_validated = component.PLATFORM_SCHEMA(p_config)\r\n  File \"/home/homeassistant/homeassistant/lib/python3.6/site-packages/voluptuous/schema_builder.py\", line 267, in __call__\r\n    return self._compiled([], data)\r\n  File \"/home/homeassistant/homeassistant/lib/python3.6/site-packages/voluptuous/schema_builder.py\", line 589, in validate_dict\r\n    return base_validate(path, iteritems(data), out)\r\n  File \"/home/homeassistant/homeassistant/lib/python3.6/site-packages/voluptuous/schema_builder.py\", line 381, in validate_mapping\r\n    cval = cvalue(key_path, value)\r\n  File \"/home/homeassistant/homeassistant/lib/python3.6/site-packages/voluptuous/validators.py\", line 204, in _run\r\n    return self._exec(self._compiled, value, path)\r\n  File \"/home/homeassistant/homeassistant/lib/python3.6/site-packages/voluptuous/validators.py\", line 284, in _exec\r\n    v = func(path, v)\r\n  File \"/home/homeassistant/homeassistant/lib/python3.6/site-packages/voluptuous/schema_builder.py\", line 630, in validate_sequence\r\n    cval = validate(index_path, value)\r\n  File \"/home/homeassistant/homeassistant/lib/python3.6/site-packages/voluptuous/validators.py\", line 204, in _run\r\n    return self._exec(self._compiled, value, path)\r\n  File \"/home/homeassistant/homeassistant/lib/python3.6/site-packages/voluptuous/validators.py\", line 249, in _exec\r\n    return func(path, v)\r\n  File \"/home/homeassistant/homeassistant/lib/python3.6/site-packages/voluptuous/validators.py\", line 204, in _run\r\n    return self._exec(self._compiled, value, path)\r\n  File \"/home/homeassistant/homeassistant/lib/python3.6/site-packages/voluptuous/validators.py\", line 284, in _exec\r\n    v = func(path, v)\r\n  File \"/home/homeassistant/homeassistant/lib/python3.6/site-packages/voluptuous/schema_builder.py\", line 811, in validate_callable\r\n    return schema(data)\r\n  File \"/home/homeassistant/homeassistant/lib/python3.6/site-packages/voluptuous/schema_builder.py\", line 267, in __call__\r\n    return self._compiled([], data)\r\n  File \"/home/homeassistant/homeassistant/lib/python3.6/site-packages/voluptuous/schema_builder.py\", line 589, in validate_dict\r\n    return base_validate(path, iteritems(data), out)\r\n  File \"/home/homeassistant/homeassistant/lib/python3.6/site-packages/voluptuous/schema_builder.py\", line 381, in validate_mapping\r\n    cval = cvalue(key_path, value)\r\n  File \"/home/homeassistant/homeassistant/lib/python3.6/site-packages/voluptuous/schema_builder.py\", line 811, in validate_callable\r\n    return schema(data)\r\n  File \"/home/homeassistant/homeassistant/lib/python3.6/site-packages/homeassistant/helpers/config_validation.py\", line 309, in service\r\n    if valid_entity_id(value):\r\n  File \"/home/homeassistant/homeassistant/lib/python3.6/site-packages/homeassistant/core.py\", line 80, in valid_entity_id\r\n    return ENTITY_ID_PATTERN.match(entity_id) is not None\r\nTypeError: expected string or bytes-like object\r\n\r\n```\r\n\r\n**Additional information:**\r\n"},"comment":{"url":"https://api.github.com/repos/home-assistant/home-assistant/issues/comments/436551414","html_url":"https://github.com/home-assistant/home-assistant/issues/18295#issuecomment-436551414","issue_url":"https://api.github.com/repos/home-assistant/home-assistant/issues/18295","id":436551414,"node_id":"MDEyOklzc3VlQ29tbWVudDQzNjU1MTQxNA==","user":{"login":"Konstigt","id":24416775,"node_id":"MDQ6VXNlcjI0NDE2Nzc1","avatar_url":"https://avatars1.githubusercontent.com/u/24416775?v=4","gravatar_id":"","url":"https://api.github.com/users/Konstigt","html_url":"https://github.com/Konstigt","followers_url":"https://api.github.com/users/Konstigt/followers","following_url":"https://api.github.com/users/Konstigt/following{/other_user}","gists_url":"https://api.github.com/users/Konstigt/gists{/gist_id}","starred_url":"https://api.github.com/users/Konstigt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Konstigt/subscriptions","organizations_url":"https://api.github.com/users/Konstigt/orgs","repos_url":"https://api.github.com/users/Konstigt/repos","events_url":"https://api.github.com/users/Konstigt/events{/privacy}","received_events_url":"https://api.github.com/users/Konstigt/received_events","type":"User","site_admin":false},"created_at":"2018-11-07T08:57:53Z","updated_at":"2018-11-07T08:57:53Z","author_association":"NONE","body":"Also happens when I do it from command line\r\n\r\n```\r\n(homeassistant) homeassistant@mistik:~$ hass --script check_config\r\nINFO:homeassistant.util.package:Attempting install of colorlog==3.1.4\r\nTesting configuration at /home/homeassistant/.homeassistant\r\nERROR:homeassistant.scripts.check_config:BURB\r\nTraceback (most recent call last):\r\n  File \"/home/homeassistant/homeassistant/lib/python3.6/site-packages/homeassistant/scripts/check_config.py\", line 207, in check\r\n    res['components'] = check_ha_config_file(hass)\r\n  File \"/home/homeassistant/homeassistant/lib/python3.6/site-packages/homeassistant/scripts/check_config.py\", line 360, in check_ha_config_file\r\n    p_validated = component.PLATFORM_SCHEMA(p_config)\r\n  File \"/home/homeassistant/homeassistant/lib/python3.6/site-packages/voluptuous/schema_builder.py\", line 267, in __call__\r\n    return self._compiled([], data)\r\n  File \"/home/homeassistant/homeassistant/lib/python3.6/site-packages/voluptuous/schema_builder.py\", line 589, in validate_dict\r\n    return base_validate(path, iteritems(data), out)\r\n  File \"/home/homeassistant/homeassistant/lib/python3.6/site-packages/voluptuous/schema_builder.py\", line 381, in validate_mapping\r\n    cval = cvalue(key_path, value)\r\n  File \"/home/homeassistant/homeassistant/lib/python3.6/site-packages/voluptuous/validators.py\", line 204, in _run\r\n    return self._exec(self._compiled, value, path)\r\n  File \"/home/homeassistant/homeassistant/lib/python3.6/site-packages/voluptuous/validators.py\", line 284, in _exec\r\n    v = func(path, v)\r\n  File \"/home/homeassistant/homeassistant/lib/python3.6/site-packages/voluptuous/schema_builder.py\", line 630, in validate_sequence\r\n    cval = validate(index_path, value)\r\n  File \"/home/homeassistant/homeassistant/lib/python3.6/site-packages/voluptuous/validators.py\", line 204, in _run\r\n    return self._exec(self._compiled, value, path)\r\n  File \"/home/homeassistant/homeassistant/lib/python3.6/site-packages/voluptuous/validators.py\", line 249, in _exec\r\n    return func(path, v)\r\n  File \"/home/homeassistant/homeassistant/lib/python3.6/site-packages/voluptuous/validators.py\", line 204, in _run\r\n    return self._exec(self._compiled, value, path)\r\n  File \"/home/homeassistant/homeassistant/lib/python3.6/site-packages/voluptuous/validators.py\", line 284, in _exec\r\n    v = func(path, v)\r\n  File \"/home/homeassistant/homeassistant/lib/python3.6/site-packages/voluptuous/schema_builder.py\", line 811, in validate_callable\r\n    return schema(data)\r\n  File \"/home/homeassistant/homeassistant/lib/python3.6/site-packages/voluptuous/schema_builder.py\", line 267, in __call__\r\n    return self._compiled([], data)\r\n  File \"/home/homeassistant/homeassistant/lib/python3.6/site-packages/voluptuous/schema_builder.py\", line 589, in validate_dict\r\n    return base_validate(path, iteritems(data), out)\r\n  File \"/home/homeassistant/homeassistant/lib/python3.6/site-packages/voluptuous/schema_builder.py\", line 381, in validate_mapping\r\n    cval = cvalue(key_path, value)\r\n  File \"/home/homeassistant/homeassistant/lib/python3.6/site-packages/voluptuous/schema_builder.py\", line 811, in validate_callable\r\n    return schema(data)\r\n  File \"/home/homeassistant/homeassistant/lib/python3.6/site-packages/homeassistant/helpers/config_validation.py\", line 309, in service\r\n    if valid_entity_id(value):\r\n  File \"/home/homeassistant/homeassistant/lib/python3.6/site-packages/homeassistant/core.py\", line 80, in valid_entity_id\r\n    return ENTITY_ID_PATTERN.match(entity_id) is not None\r\nTypeError: expected string or bytes-like object\r\nFatal error while loading config: expected string or bytes-like object\r\nFailed config\r\n  General Errors: \r\n    - expected string or bytes-like object\r\n\r\nSuccessful config (partial)\r\n```"}}
{"actor":{"display_login":"Konstigt"}}