'Create dicts to map booleans to pin high/low and vice versa.
Depends on the config item "on_state" which should be set to "low"
or "high".'

@property
def boolean_maps(self):

    if (self._config.get('on_state', '').lower() == 'low'):
        bool2state = {True: GPIO_DIGITAL_OUTPUT_LOW, False: GPIO_DIGITAL_OUTPUT_HIGH}
    else:
        bool2state = {True: GPIO_DIGITAL_OUTPUT_HIGH, False: GPIO_DIGITAL_OUTPUT_LOW}
    state2bool = {v: k for (k, v) in bool2state.items()}
    return (bool2state, state2bool)
