Commit 7c4d2601 authored by Samuel Elliott's avatar Samuel Elliott

Remove On characteristic for Input Source services

parent e33e3332
......@@ -736,17 +736,6 @@ class TVAccessory {
input_service.setCharacteristic(this.constructor.hap.Characteristic.Identifier, this.input_source_services.length);
// Remove once iOS 12.2 is released
input_service.getCharacteristic(this.constructor.hap.Characteristic.On)
.on('get', callback => callback(undefined, false))
.on('set', (on, callback) => {
callback();
if (!on) return;
this.tv_service.setCharacteristic(this.constructor.hap.Characteristic.ActiveIdentifier, input_service.getCharacteristic(this.constructor.hap.Characteristic.Identifier).value);
setTimeout(() => input_service.getCharacteristic(this.constructor.hap.Characteristic.On).updateValue(false), 100);
});
this.input_source_services.push(input_service);
this.tv_service.addLinkedService(input_service);
......
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