satel_integra/satel_integra.py
async def arm(self, code, partition_list, mode=0):
        """Send arming command to the alarm. Modes allowed: from 0 till 3."""
        _LOGGER.debug("Sending arm command, mode: %s!", mode)
        while len(code) < 16:
            code += 'F'

        code_bytes = bytearray.fromhex(code)
        mode_command = 0x80 + mode
        data = generate_query(mode_command.to_bytes(1, 'big')
                              + code_bytes
                              + partition_bytes(partition_list))

        await self._send_data(data)
async def arm(self, code, partition_list, mode=0):
        """Send arming command to the alarm. Modes allowed: from 0 till 3."""
        _LOGGER.debug("Sending arm command, mode: %s!", mode)
        while len(code) < 16:
            code += 'F'

        code_bytes = bytearray.fromhex(code)
        mode_command = 0x80 + mode
        data = generate_query(mode_command.to_bytes(1, 'big')
                              + code_bytes
                              + partition_bytes(partition_list))

        await self._send_data(data)
async def arm ( self , code , partition_list , mode = 0 ) : _LOGGER . debug ( "Sending arm command, mode: %s!" , mode ) while len ( code ) < 16 : code += 'F' code_bytes = bytearray . fromhex ( code ) mode_command = 0x80 + mode data = generate_query ( mode_command . to_bytes ( 1 , 'big' ) + code_bytes + partition_bytes ( partition_list ) ) await self . _send_data ( data )
Send arming command to the alarm. Modes allowed: from 0 till 3.
Send arming command to the alarm . Modes allowed : from 0 till 3 .