@riddix/hamh 2.1.0-alpha.368 → 2.1.0-alpha.369
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/dist/backend/cli.js
CHANGED
|
@@ -171949,26 +171949,6 @@ function createVacuumServiceAreaServer(attributes7, roomEntities, includeUnnamed
|
|
|
171949
171949
|
currentArea: null
|
|
171950
171950
|
});
|
|
171951
171951
|
}
|
|
171952
|
-
function createDefaultServiceAreaServer() {
|
|
171953
|
-
return ServiceAreaServer2({
|
|
171954
|
-
supportedAreas: [
|
|
171955
|
-
{
|
|
171956
|
-
areaId: 1,
|
|
171957
|
-
mapId: null,
|
|
171958
|
-
areaInfo: {
|
|
171959
|
-
locationInfo: {
|
|
171960
|
-
locationName: "Home",
|
|
171961
|
-
floorNumber: null,
|
|
171962
|
-
areaType: null
|
|
171963
|
-
},
|
|
171964
|
-
landmarkInfo: null
|
|
171965
|
-
}
|
|
171966
|
-
}
|
|
171967
|
-
],
|
|
171968
|
-
selectedAreas: [],
|
|
171969
|
-
currentArea: null
|
|
171970
|
-
});
|
|
171971
|
-
}
|
|
171972
171952
|
function createCustomServiceAreaServer(customAreas) {
|
|
171973
171953
|
const supportedAreas = customAreas.map((area, index) => ({
|
|
171974
171954
|
areaId: index + 1,
|
|
@@ -173288,8 +173268,7 @@ function VacuumDevice(homeAssistantEntity, includeOnOff = false) {
|
|
|
173288
173268
|
createVacuumServiceAreaServer(attributes7, roomEntities)
|
|
173289
173269
|
);
|
|
173290
173270
|
} else {
|
|
173291
|
-
logger185.info(`${entityId}:
|
|
173292
|
-
device = device.with(createDefaultServiceAreaServer());
|
|
173271
|
+
logger185.info(`${entityId}: Skipping ServiceArea (no rooms configured)`);
|
|
173293
173272
|
}
|
|
173294
173273
|
const hasCleaningModeEntity = !!homeAssistantEntity.mapping?.cleaningModeEntity;
|
|
173295
173274
|
const fanSpeedList = resolveFanSpeedList(
|
|
@@ -175202,8 +175181,6 @@ function ServerModeVacuumDevice(homeAssistantEntity, includeOnOff = false) {
|
|
|
175202
175181
|
device = device.with(
|
|
175203
175182
|
createVacuumServiceAreaServer(attributes7, roomEntities)
|
|
175204
175183
|
);
|
|
175205
|
-
} else {
|
|
175206
|
-
device = device.with(createDefaultServiceAreaServer());
|
|
175207
175184
|
}
|
|
175208
175185
|
const hasCleaningModeEntity = !!homeAssistantEntity.mapping?.cleaningModeEntity;
|
|
175209
175186
|
const fanSpeedList = resolveFanSpeedList(
|