예제 #1
0
 def __init__(self, name, manufacturer, model, serial_number,
              firmware_revision):
     self.aid = get_id()
     self.services = [
         AccessoryInformationService(name, manufacturer, model,
                                     serial_number, firmware_revision)
     ]
예제 #2
0
    def __init__(self, service):
        characteristic = CharacteristicEntry(
            model_mixin.get_id(),
            'public.hap.characteristic.pairing.pairings',
            'data',
        )

        super().__init__(service, characteristic)

        self.values = []
예제 #3
0
    def __init__(self, device):
        service = ServiceEntry(
            ServicesTypes.get_uuid('public.hap.service.pairing'),
            model_mixin.get_id(),
        )

        super().__init__(device, service)

        self.characteristics.append(PairingSetupCharacteristicHandler(self))
        self.characteristics.append(PairingVerifyCharacteristicHandler(self))
        self.characteristics.append(PairingPairingsCharacteristicHandler(self))
예제 #4
0
    def __init__(self, service):
        characteristic = CharacteristicEntry(
            model_mixin.get_id(),
            'public.hap.characteristic.pairing.pair-verify',
            'data',
        )

        super().__init__(service, characteristic)

        self.rh = AccessoryRequestHandler(self)

        self.values = []
예제 #5
0
 def __init__(self, name):
     self.aid = get_id()
     self.services = [AcessoryInformationService(name)]