Upgraded from 0.39.3 to 0.40.0 broke rfxtrx?

I just upgraded from 0.39.3 to 0.40.0 but now i get the following error:

Traceback (most recent call last):
  File "C:\Users\xbmc\AppData\Local\Programs\Python\Python36-32\lib\site-packages\homeassistant\setup.py", line 58, in async_setup_component
    return (yield from task)
  File "C:\Users\xbmc\AppData\Local\Programs\Python\Python36-32\lib\site-packages\homeassistant\setup.py", line 154, in _async_setup_component
    conf_util.async_process_component_config(hass, config, domain)
  File "C:\Users\xbmc\AppData\Local\Programs\Python\Python36-32\lib\site-packages\homeassistant\config.py", line 566, in async_process_component_config
    p_validated = platform.PLATFORM_SCHEMA(p_validated)
  File "C:\Users\xbmc\AppData\Local\Programs\Python\Python36-32\lib\site-packages\voluptuous\schema_builder.py", line 192, in __call__
    return self._compiled([], data)
  File "C:\Users\xbmc\AppData\Local\Programs\Python\Python36-32\lib\site-packages\voluptuous\schema_builder.py", line 486, in validate_dict
    return base_validate(path, iteritems(data), out)
  File "C:\Users\xbmc\AppData\Local\Programs\Python\Python36-32\lib\site-packages\voluptuous\schema_builder.py", line 269, in validate_mapping
    cval = cvalue(key_path, value)
  File "C:\Users\xbmc\AppData\Local\Programs\Python\Python36-32\lib\site-packages\voluptuous\schema_builder.py", line 625, in validate_callable
    return schema(data)
  File "C:\Users\xbmc\AppData\Local\Programs\Python\Python36-32\lib\site-packages\voluptuous\validators.py", line 262, in __call__
    v = schema(v)
  File "C:\Users\xbmc\AppData\Local\Programs\Python\Python36-32\lib\site-packages\voluptuous\schema_builder.py", line 192, in __call__
    return self._compiled([], data)
  File "C:\Users\xbmc\AppData\Local\Programs\Python\Python36-32\lib\site-packages\voluptuous\schema_builder.py", line 625, in validate_callable
    return schema(data)
  File "C:\Users\xbmc\AppData\Local\Programs\Python\Python36-32\lib\site-packages\homeassistant\components\rfxtrx.py", line 96, in _valid_light_switch
    return _valid_device(value, "light_switch")
  File "C:\Users\xbmc\AppData\Local\Programs\Python\Python36-32\lib\site-packages\homeassistant\components\rfxtrx.py", line 74, in _valid_device
    if get_rfx_object(key) is None:
  File "C:\Users\xbmc\AppData\Local\Programs\Python\Python36-32\lib\site-packages\homeassistant\components\rfxtrx.py", line 175, in get_rfx_object
    import RFXtrx as rfxtrxmod
ModuleNotFoundError: No module named 'RFXtrx'

Upgrade log:

pip3 install --upgrade homeassistant
Collecting homeassistant
  Downloading homeassistant-0.40.0.tar.gz (6.2MB)
    100% |████████████████████████████████| 6.2MB 189kB/s
Requirement already up-to-date: requests<3,>=2 in c:\users\xbmc\appdata\local\programs\python\python36-32\lib\site-packages (from homeassistant)
Requirement already up-to-date: pyyaml<4,>=3.11 in c:\users\xbmc\appdata\local\programs\python\python36-32\lib\site-packages (from homeassistant)
Requirement already up-to-date: pytz>=2016.10 in c:\users\xbmc\appdata\local\programs\python\python36-32\lib\site-packages (from homeassistant)
Requirement already up-to-date: pip>=7.0.0 in c:\users\xbmc\appdata\local\programs\python\python36-32\lib\site-packages (from homeassistant)
Requirement already up-to-date: jinja2>=2.9.5 in c:\users\xbmc\appdata\local\programs\python\python36-32\lib\site-packages (from homeassistant)
Requirement already up-to-date: voluptuous==0.9.3 in c:\users\xbmc\appdata\local\programs\python\python36-32\lib\site-packages (from homeassistant)
Requirement already up-to-date: typing<4,>=3 in c:\users\xbmc\appdata\local\programs\python\python36-32\lib\site-packages (from homeassistant)
Requirement already up-to-date: aiohttp==1.3.3 in c:\users\xbmc\appdata\local\programs\python\python36-32\lib\site-packages (from homeassistant)
Requirement already up-to-date: async_timeout==1.1.0 in c:\users\xbmc\appdata\local\programs\python\python36-32\lib\site-packages (from homeassistant)
Collecting MarkupSafe>=0.23 (from jinja2>=2.9.5->homeassistant)
  Downloading MarkupSafe-1.0.tar.gz
Collecting setuptools>=0.6b1 (from voluptuous==0.9.3->homeassistant)
  Downloading setuptools-34.3.2-py2.py3-none-any.whl (389kB)
    100% |████████████████████████████████| 399kB 561kB/s
Requirement already up-to-date: yarl<0.10,>=0.9.8 in c:\users\xbmc\appdata\local\programs\python\python36-32\lib\site-packages (from aiohttp==1.3.3->homeassistant)
Requirement already up-to-date: multidict>=2.1.4 in c:\users\xbmc\appdata\local\programs\python\python36-32\lib\site-packages (from aiohttp==1.3.3->homeassistant)
Requirement already up-to-date: chardet in c:\users\xbmc\appdata\local\programs\python\python36-32\lib\site-packages (from aiohttp==1.3.3->homeassistant)
Requirement already up-to-date: appdirs>=1.4.0 in c:\users\xbmc\appdata\local\programs\python\python36-32\lib\site-packages (from setuptools>=0.6b1->voluptuous==0.9.3->homeassistant)
Requirement already up-to-date: six>=1.6.0 in c:\users\xbmc\appdata\local\programs\python\python36-32\lib\site-packages (from setuptools>=0.6b1->voluptuous==0.9.3->homeassistant)
Collecting packaging>=16.8 (from setuptools>=0.6b1->voluptuous==0.9.3->homeassistant)
  Downloading packaging-16.8-py2.py3-none-any.whl
Collecting pyparsing (from packaging>=16.8->setuptools>=0.6b1->voluptuous==0.9.3->homeassistant)
  Downloading pyparsing-2.2.0-py2.py3-none-any.whl (56kB)
    100% |████████████████████████████████| 61kB 665kB/s
Installing collected packages: homeassistant, MarkupSafe, pyparsing, packaging, setuptools
  Found existing installation: homeassistant 0.39.3
    Uninstalling homeassistant-0.39.3:
      Successfully uninstalled homeassistant-0.39.3
  Running setup.py install for homeassistant ... done
  Found existing installation: MarkupSafe 0.23
    Uninstalling MarkupSafe-0.23:
      Successfully uninstalled MarkupSafe-0.23
  Running setup.py install for MarkupSafe ... done
  Found existing installation: setuptools 28.8.0
    Uninstalling setuptools-28.8.0:
      Successfully uninstalled setuptools-28.8.0
Successfully installed MarkupSafe-1.0 homeassistant-0.40.0 packaging-16.8 pyparsing-2.2.0 setuptools-34.3.2

My hole setup is dependent on the RFXCom device…
How do i fix this?

Restarting Home Assistant solved the issue.

For me restarting fixes it, but for a limited time, no clue from the logs though as to why :frowning:

Might be related: https://github.com/home-assistant/home-assistant/issues/6581