Discovery Component Not Installed

Hi Guys

This is my first post on this forum. I’m new with home assistant. I just setup home assistant on my desktop browser, and after running two commands on python, the console says:

Invalid Config
The following components and platforms could not be set up:
discovery
Please check your config

Is it an issue and if it is, how to fix it.
Thanks in advance.

Well, we would need to see your config to understand what is wrong…

Discovery is used to automatically add certain devices if available. It is not required.

You can remove that line from your config if you want. Not sure why it isn’t loading.

It shows the below error:

The following errors have been logged this session:

2017-07-13 12:49:28 ERROR (MainThread) [homeassistant.setup] Error during setup of component discovery
Traceback (most recent call last):
File “C:\Python36-32\lib\site-packages\homeassistant\setup.py”, line 187, in _async_setup_component
result = yield from component.async_setup(hass, processed_config)
File “C:\Python36-32\lib\asyncio\coroutines.py”, line 210, in coro
res = func(*args, **kw)
File “C:\Python36-32\lib\site-packages\homeassistant\components\discovery.py”, line 75, in async_setup
from netdisco.discovery import NetworkDiscovery
File “C:\Python36-32\lib\site-packages\netdisco-1.0.1-py3.6.egg\netdisco\discovery.py”, line 6, in
from .ssdp import SSDP
File “C:\Python36-32\lib\site-packages\netdisco-1.0.1-py3.6.egg\netdisco\ssdp.py”, line 11, in
from netdisco.util import etree_to_dict, interface_addresses
File “C:\Python36-32\lib\site-packages\netdisco-1.0.1-py3.6.egg\netdisco\util.py”, line 4, in
import netifaces
ModuleNotFoundError: No module named ‘netifaces’
2017-07-13 12:49:29 ERROR (MainThread) [homeassistant.core] Error doing job: Exception in callback _ProactorReadPipeTransport._loop_reading(<_OverlappedF…op_reading()]>)
Traceback (most recent call last):
File “C:\Python36-32\lib\asyncio\events.py”, line 127, in _run
self._callback(*self._args)
File “C:\Python36-32\lib\asyncio\proactor_events.py”, line 190, in _loop_reading
data = fut.result() # deliver data later in “finally” clause
File “C:\Python36-32\lib\asyncio\futures.py”, line 238, in result
raise InvalidStateError(‘Result is not ready.’)
asyncio.base_futures.InvalidStateError: Result is not ready.
2017-07-13 12:49:45 ERROR (MainThread) [homeassistant.core] Error doing job: Exception in callback _ProactorReadPipeTransport._loop_reading(<_OverlappedF…ed result=b’’>)
Traceback (most recent call last):
File “C:\Python36-32\lib\asyncio\events.py”, line 127, in _run
self._callback(*self._args)
File “C:\Python36-32\lib\asyncio\proactor_events.py”, line 188, in _loop_reading
self._closing)
AssertionError
2017-07-13 13:05:40 ERROR (MainThread) [homeassistant.core] Timer got out of sync. Resetting
2017-07-13 13:08:38 ERROR (MainThread) [homeassistant.core] Error doing job: Exception in callback _ProactorReadPipeTransport._loop_reading(<_OverlappedF…op_reading()]>)
Traceback (most recent call last):
File “C:\Python36-32\lib\asyncio\events.py”, line 127, in _run
self._callback(*self._args)
File “C:\Python36-32\lib\asyncio\proactor_events.py”, line 190, in _loop_reading
data = fut.result() # deliver data later in “finally” clause
File “C:\Python36-32\lib\asyncio\futures.py”, line 238, in result
raise InvalidStateError(‘Result is not ready.’)
asyncio.base_futures.InvalidStateError: Result is not ready.
2017-07-13 13:09:53 ERROR (MainThread) [homeassistant.core] Error doing job: Exception in callback _ProactorReadPipeTransport._loop_reading(<_OverlappedF…\x06\xa2\xe6’>)
Traceback (most recent call last):
File “C:\Python36-32\lib\asyncio\events.py”, line 127, in _run
self._callback(*self._args)
File “C:\Python36-32\lib\asyncio\proactor_events.py”, line 188, in _loop_reading
self._closing)
AssertionError

Glad to know it is not mandatory module.
I’ve been searching for the solution for couple of hours and can’t find any.

Not mandatory, but can be helpful for new people or those that don’t want to hard code their config. I don’t personally use it as I find it pretty easy to add platforms when I need one. It can also cause issues as it will automatically try to setup those platforms even if you choose not to use them. For example it would constantly try to setup the netgear device tracker component even though I use nmap.

I installed netdisco and netifaces as well, but it still showing the same error as above.
Can you point me in the right direction.

Sorry thats a bit above my head.

If you want to disable the component you can remove discovery: from your config file (assuming your not using it).

Do you know a way out to resolve this error, how to bring in the discovery module.