diff --git a/enoceanmqtt/overlays/homeassistant/ha_communicator.py b/enoceanmqtt/overlays/homeassistant/ha_communicator.py index 4c967f9..73443b3 100644 --- a/enoceanmqtt/overlays/homeassistant/ha_communicator.py +++ b/enoceanmqtt/overlays/homeassistant/ha_communicator.py @@ -47,7 +47,7 @@ def __init__(self, config, sensors): cur_sensor['command'] = devcfg.get('command') cur_sensor['channel'] = devcfg.get('channel') cur_sensor['log_learn'] = devcfg.get('log_learn') - cur_sensor['direction'] = devcfg.get('direction') + cur_sensor['direction'] = devcfg.get('direction') or None cur_sensor['answer'] = devcfg.get('answer') # Better to work with JSON in HA so force JSON usage