'Return true if device is on.'

@property
def is_on(self):

    try:
        state = self.I2C_HATS_MANAGER.read_dq(self._address, self._channel)
        return (state != self._invert_logic)
    except I2CHatsException as ex:
        _LOGGER.error(self._log_message(('Is    ON    check    failed,    ' + str(ex))))
        return False
