Rpi_rf error

what is this error?

17-02-18 19:30:24 ERROR (MainThread) [homeassistant.components.switch] Error while setting up platform rpi_rf
Traceback (most recent call last):
  File "/srv/hass/hass_venv/lib/python3.4/site-packages/homeassistant/helpers/entity_component.py", line 151, in _async_setup_platform
    entity_platform.add_entities, discovery_info
  File "/usr/lib/python3.4/asyncio/futures.py", line 388, in __iter__
    yield self  # This tells Task to wait for completion.
  File "/usr/lib/python3.4/asyncio/tasks.py", line 286, in _wakeup
    value = future.result()
  File "/usr/lib/python3.4/asyncio/futures.py", line 277, in result
    raise self._exception
  File "/usr/lib/python3.4/concurrent/futures/thread.py", line 54, in run
    result = self.fn(*self.args, **self.kwargs)
  File "/srv/hass/hass_venv/lib/python3.4/site-packages/homeassistant/components/switch/rpi_rf.py", line 68, in setup_platform
    rfdevice.enable_tx()
  File "/home/hass/.homeassistant/deps/rpi_rf/rpi_rf.py", line 77, in enable_tx
    GPIO.setup(self.gpio, GPIO.OUT)
RuntimeError: No access to /dev/mem.  Try running as root!

The user that run Home Assistant needs access to the GPIOs.

Thanks. How to give hass user access to that?

sudo adduser hass_user gpio
replace hass_user with yours. (Mine was homeassistant)