mirror of
https://github.com/mtan93/homebridge.git
synced 2026-04-15 22:05:12 +01:00
Merge pull request #325 from patricks/master
Fixed netatmo problem with duplicate module names
This commit is contained in:
@@ -126,7 +126,14 @@ function NetatmoAccessory(log, repository, deviceId, moduleId, device) {
|
|||||||
if (moduleId) {
|
if (moduleId) {
|
||||||
this.serial = moduleId;
|
this.serial = moduleId;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// add station name to devices to avoid duplicate names
|
||||||
|
if (device.station_name) {
|
||||||
|
this.name = device.station_name + " " + device.module_name;
|
||||||
|
} else {
|
||||||
this.name = device.module_name;
|
this.name = device.module_name;
|
||||||
|
}
|
||||||
|
|
||||||
this.model = device.type;
|
this.model = device.type;
|
||||||
this.serviceTypes = device.data_type;
|
this.serviceTypes = device.data_type;
|
||||||
if (device.battery_vp) {
|
if (device.battery_vp) {
|
||||||
|
|||||||
Reference in New Issue
Block a user