'Create mapping dictionaries for potential inversion of booleans.
Create dicts to map the pin state (true/false) to potentially inverted
values depending on the on_state config value which should be set to
"low" or "high".'

@property
def boolean_maps(self):

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