def __init__(self, apple_tv, daap):
super().__init__()<EOL>self.apple_tv = apple_tv<EOL>address = urlparse(daap.base_url).hostname<EOL>self._device_id = hashlib.sha256(address.encode('<STR_LIT:utf-8>')).hexdigest()<EOL>
Initialize metadata instance.