Commit 6575e802 authored by Samuel Elliott's avatar Samuel Elliott

Always use the hostname to connect to the Apple TV

parent 91cd8430
......@@ -100,9 +100,8 @@ class TVAccessory {
AppleTV.scan(credentials.uniqueIdentifier).then(devices => {
this.apple_tv = devices[0];
this.apple_tv.on('error', err => {
console.error(this.name + ' Apple TV error', err);
});
this.apple_tv.on('error', err => console.error(this.name + ' Apple TV error', err));
this.apple_tv.address = this.apple_tv.service.host;
return this.apple_tv.openConnection(credentials);
}).then(device => {
this.log('Connected to %s Apple TV', this.name);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment