async renameSegment(segment, name) {
        if (this.robot.state.map?.metaData?.defaultMap === true) {
            throw new Error("Can't rename segment because the map was not parsed yet");
        }

        await this.robot.sendCommand("rename_room", [
            this.robot.ephemeralState.vendorMapId,
            1,
            parseInt(segment.id),
            name
        ],
        {timeout: 5000}
        );

        this.robot.pollMap();
    }
@param {import("../../../entities/core/ValetudoMapSegment")} segment
@param {string} name