'Construct interface object.'

def __init__(self, hass, devices, bt_device_id):

    self.hass = hass
    self.devices = devices
    self.bt_device_id = bt_device_id
    def callback(bt_addr, _, packet, additional_info):
        'Handle    new    packets.'
        self.process_packet(additional_info['namespace'], additional_info['instance'], packet.temperature)
    from beacontools import BeaconScanner, EddystoneFilter, EddystoneTLMFrame
    device_filters = [EddystoneFilter(d.namespace, d.instance) for d in devices]
    self.scanner = BeaconScanner(callback, bt_device_id, device_filters, EddystoneTLMFrame)
    self.scanning = False
