@homebridge-plugins/homebridge-meross 10.13.0 → 10.13.1
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/CHANGELOG.md +6 -0
- package/lib/platform.js +3 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
package/lib/platform.js
CHANGED
|
@@ -510,12 +510,14 @@ export default class {
|
|
|
510
510
|
device.model = device.deviceType.toUpperCase().replace(/-+/g, '')
|
|
511
511
|
|
|
512
512
|
// Add context information for the plugin-ui and instance to use
|
|
513
|
+
// Resolve 'default' connection to 'hybrid' so switch statements match correctly
|
|
514
|
+
const connSetting = deviceConf.connection || this.config.connection
|
|
513
515
|
const context = {
|
|
514
516
|
channel: 0,
|
|
515
517
|
channelCount: device.channels.length,
|
|
516
518
|
connection: deviceConf.deviceUrl
|
|
517
519
|
? 'local'
|
|
518
|
-
:
|
|
520
|
+
: connSetting === 'default' ? 'hybrid' : connSetting,
|
|
519
521
|
deviceUrl: deviceConf.deviceUrl,
|
|
520
522
|
domain: device.domain,
|
|
521
523
|
firmware: device.firmware,
|
package/package.json
CHANGED