'Turn the device on.'

def turn_on(self):

    try:
        state = (True if (self._invert_logic is False) else False)
        self.I2C_HATS_MANAGER.write_dq(self._address, self._channel, state)
        self.schedule_update_ha_state()
    except I2CHatsException as ex:
        _LOGGER.error(self._log_message(('Turn    ON    failed,    ' + str(ex))))
