Skip to content

Commit

Permalink
iOS18 compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
grzegorz914 committed Nov 11, 2024
1 parent 9379d9e commit 6c1d20e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"displayName": "Xbox TV",
"name": "homebridge-xbox-tv",
"version": "3.1.20",
"version": "3.1.21",
"description": "Homebridge plugin to control Xbox game consoles.",
"license": "MIT",
"author": "grzegorz914",
Expand Down
7 changes: 4 additions & 3 deletions src/xboxdevice.js
Original file line number Diff line number Diff line change
Expand Up @@ -584,7 +584,8 @@ class XboxDevice extends EventEmitter {
.setCharacteristic(Characteristic.Manufacturer, this.savedInfo.manufacturer ?? 'Microsoft')
.setCharacteristic(Characteristic.Model, this.savedInfo.modelName ?? 'Xbox')
.setCharacteristic(Characteristic.SerialNumber, this.savedInfo.serialNumber ?? this.xboxLiveId)
.setCharacteristic(Characteristic.FirmwareRevision, this.savedInfo.firmwareRevision ?? 'Firmware Revision');
.setCharacteristic(Characteristic.FirmwareRevision, this.savedInfo.firmwareRevision ?? 'Firmware Revision')
.setCharacteristic(Characteristic.ConfiguredName, accessoryName);
this.allServices.push(this.informationService);

//Prepare television service
Expand Down Expand Up @@ -992,7 +993,7 @@ class XboxDevice extends EventEmitter {
const debug = !this.enableDebugMode ? false : this.emit('debug', `Prepare volume service`);
const volumeServiceName = this.volumeControlNamePrefix ? `${accessoryName} ${this.volumeControlName}` : this.volumeControlName;
if (this.volumeControl === 1) {
this.volumeService = accessory.addService(Service.Lightbulb, `${volumeServiceName}`, 'Volume');
this.volumeService = accessory.addService(Service.Lightbulb, `${volumeServiceName}`, volumeServiceName);
this.volumeService.addOptionalCharacteristic(Characteristic.ConfiguredName);
this.volumeService.setCharacteristic(Characteristic.ConfiguredName, `${volumeServiceName}`);
this.volumeService.getCharacteristic(Characteristic.Brightness)
Expand All @@ -1016,7 +1017,7 @@ class XboxDevice extends EventEmitter {
}

if (this.volumeControl === 2) {
this.volumeServiceFan = accessory.addService(Service.Fan, `${volumeServiceName}`, 'Volume');
this.volumeServiceFan = accessory.addService(Service.Fan, `${volumeServiceName}`, volumeServiceName);
this.volumeServiceFan.addOptionalCharacteristic(Characteristic.ConfiguredName);
this.volumeServiceFan.setCharacteristic(Characteristic.ConfiguredName, `${volumeServiceName}`);
this.volumeServiceFan.getCharacteristic(Characteristic.RotationSpeed)
Expand Down

0 comments on commit 6c1d20e

Please sign in to comment.