:return: bytes

def data_to_binary(self):
        """
        :return: bytes
        """
        return bytes([
            COMMAND_CODE,
            self.channels_to_byte(self.closed),
            self.channels_to_byte(self.enabled),
            self.channels_to_byte(self.normal),
            self.channels_to_byte(self.locked)
        ])