<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def set_away(self, away_end=None, temperature=EQ3BT_AWAY_TEMP):
 """ Sets away mode with target temperature. When called without parameters disables away mode."""

        if not away_end:
            _LOGGER.debug("Disabling away, going to auto mode.")
            return self.set_mode(0x00)

        _LOGGER.debug("Setting away until %s, temp %s", away_end, temperature)
        adapter = AwayDataAdapter(Byte[4])
        packed = adapter.build(away_end)

        self.set_mode(0x80 | int(temperature * 2), packed)