def __init__(self, name, manufacturer, model, serial_number, firmware_revision): self.aid = get_id() self.services = [ AccessoryInformationService(name, manufacturer, model, serial_number, firmware_revision) ]
def __init__(self, service): characteristic = CharacteristicEntry( model_mixin.get_id(), 'public.hap.characteristic.pairing.pairings', 'data', ) super().__init__(service, characteristic) self.values = []
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))
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 = []
def __init__(self, name): self.aid = get_id() self.services = [AcessoryInformationService(name)]