@riddix/hamh 2.1.0-alpha.414 → 2.1.0-alpha.415

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.
@@ -172733,8 +172733,8 @@ function buildSupportedModes2(attributes7, includeUnnamedRooms = false, customAr
172733
172733
  return modes;
172734
172734
  }
172735
172735
  function handleCustomServiceAreas(selectedAreas, customAreas, homeAssistant, serviceArea) {
172736
- serviceArea.state.selectedAreas = [];
172737
172736
  const matched = selectedAreas.map((areaId) => customAreas[areaId - 1]).filter(Boolean);
172737
+ serviceArea.state.selectedAreas = [];
172738
172738
  if (matched.length === 0) {
172739
172739
  logger181.warn(
172740
172740
  `Custom service areas: no match for selected IDs ${selectedAreas.join(", ")}`
@@ -172783,8 +172783,8 @@ var vacuumRvcRunModeConfig = {
172783
172783
  start: (_, agent) => {
172784
172784
  try {
172785
172785
  const serviceArea = agent.get(ServiceAreaBehavior);
172786
- const selectedAreas = serviceArea.state.selectedAreas;
172787
- if (selectedAreas && selectedAreas.length > 0) {
172786
+ const selectedAreas = [...serviceArea.state.selectedAreas];
172787
+ if (selectedAreas.length > 0) {
172788
172788
  const homeAssistant = agent.get(HomeAssistantEntityBehavior);
172789
172789
  const entity = homeAssistant.entity;
172790
172790
  const attributes7 = entity.state.attributes;