homebridge-yoto 0.0.27 → 0.0.28
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/platform.js +4 -5
- package/package.json +1 -1
package/lib/platform.js
CHANGED
|
@@ -353,7 +353,6 @@ export class YotoPlatform {
|
|
|
353
353
|
|
|
354
354
|
// Process each device
|
|
355
355
|
for (const device of devices) {
|
|
356
|
-
this.log.info(LOG_PREFIX.PLATFORM, 'Device from API:', JSON.stringify(device, null, 2))
|
|
357
356
|
await this.registerDevice(device)
|
|
358
357
|
}
|
|
359
358
|
|
|
@@ -382,8 +381,8 @@ export class YotoPlatform {
|
|
|
382
381
|
|
|
383
382
|
if (existingAccessory) {
|
|
384
383
|
// Accessory exists - update it
|
|
385
|
-
// Use
|
|
386
|
-
const displayName = device.
|
|
384
|
+
// Use device name for display
|
|
385
|
+
const displayName = device.name
|
|
387
386
|
this.log.debug(LOG_PREFIX.PLATFORM, 'Restoring existing accessory:', displayName)
|
|
388
387
|
|
|
389
388
|
// Update display name and AccessoryInformation if it has changed
|
|
@@ -417,8 +416,8 @@ export class YotoPlatform {
|
|
|
417
416
|
})
|
|
418
417
|
} else {
|
|
419
418
|
// Create new accessory
|
|
420
|
-
// Use
|
|
421
|
-
const displayName = device.
|
|
419
|
+
// Use device name for display
|
|
420
|
+
const displayName = device.name
|
|
422
421
|
this.log.debug(LOG_PREFIX.PLATFORM, 'Adding new accessory:', displayName)
|
|
423
422
|
|
|
424
423
|
// Create platform accessory
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "homebridge-yoto",
|
|
3
3
|
"description": "Control your Yoto players through Apple HomeKit with real-time MQTT updates",
|
|
4
|
-
"version": "0.0.
|
|
4
|
+
"version": "0.0.28",
|
|
5
5
|
"author": "Bret Comnes <bcomnes@gmail.com> (https://bret.io)",
|
|
6
6
|
"bugs": {
|
|
7
7
|
"url": "https://github.com/bcomnes/homebridge-yoto/issues"
|