def modify_service_data(service_data, entity_ids):
            """Modify the service data to contain the entity IDs."""
            service_data.pop(ATTR_ENTITY_ID, None)
            service_data.pop(ATTR_AREA_ID, None)
            service_data[ATTR_ENTITY_ID] = entity_ids
            return service_data
Modify the service data to contain the entity IDs.
custom_components/adaptive_lighting/switch.py